From 9f25d84accb5a3657cb4c7dd87014d9f13ccf2ef Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 13 Sep 2018 00:23:09 -0700 Subject: improve dump scripts --- extra/quick_dump.sql | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 extra/quick_dump.sql (limited to 'extra/quick_dump.sql') diff --git a/extra/quick_dump.sql b/extra/quick_dump.sql deleted file mode 100644 index d2d12bb4..00000000 --- a/extra/quick_dump.sql +++ /dev/null @@ -1,12 +0,0 @@ - -BEGIN TRANSACTION ISOLATION LEVEL SERIALIZABLE READ ONLY DEFERRABLE; - -COPY (SELECT id, rev_id, redirect_id FROM creator_ident WHERE is_live=true) TO '/tmp/fatcat_ident_creators.tsv'; -COPY (SELECT id, rev_id, redirect_id FROM container_ident WHERE is_live=true) TO '/tmp/fatcat_ident_containers.tsv'; -COPY (SELECT id, rev_id, redirect_id FROM file_ident WHERE is_live=true) TO '/tmp/fatcat_ident_files.tsv'; -COPY (SELECT id, rev_id, redirect_id FROM release_ident WHERE is_live=true) TO '/tmp/fatcat_ident_releases.tsv'; -COPY (SELECT id, rev_id, redirect_id FROM work_ident WHERE is_live=true) TO '/tmp/fatcat_ident_works.tsv'; - -COPY (SELECT row_to_json(abstracts) FROM abstracts) TO '/tmp/fatcat_abstracts.json'; - -ROLLBACK; -- cgit v1.2.3