diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-09-13 00:23:09 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-09-13 00:23:09 -0700 |
commit | 9f25d84accb5a3657cb4c7dd87014d9f13ccf2ef (patch) | |
tree | 4854b13512c65fd0bffddfb791c4c014a41088dc /extra/sql_dumps/dump_abstracts.sql | |
parent | aa9abbbab67c6344d382a964b3c451e0bf212efe (diff) | |
download | fatcat-9f25d84accb5a3657cb4c7dd87014d9f13ccf2ef.tar.gz fatcat-9f25d84accb5a3657cb4c7dd87014d9f13ccf2ef.zip |
improve dump scripts
Diffstat (limited to 'extra/sql_dumps/dump_abstracts.sql')
-rw-r--r-- | extra/sql_dumps/dump_abstracts.sql | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/extra/sql_dumps/dump_abstracts.sql b/extra/sql_dumps/dump_abstracts.sql new file mode 100644 index 00000000..9ce369ce --- /dev/null +++ b/extra/sql_dumps/dump_abstracts.sql @@ -0,0 +1,6 @@ + +BEGIN TRANSACTION ISOLATION LEVEL SERIALIZABLE READ ONLY DEFERRABLE; + +COPY (SELECT row_to_json(abstracts) FROM abstracts) TO STDOUT WITH NULL ''; + +ROLLBACK; |