aboutsummaryrefslogtreecommitdiffstats
path: root/extra/sql_dumps/dump_release_extid.sql
blob: fe1cf390dbb654d4c5517c7b00b2f66c3c5aa971 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

BEGIN TRANSACTION ISOLATION LEVEL SERIALIZABLE READ ONLY DEFERRABLE;

COPY (SELECT release_ident.id, release_rev.id, release_rev.doi, release_rev.pmcid, release_rev.pmid,
             release_rev.core_id, release_rev.wikidata_qid, release_rev.arxiv_id, release_rev.jstor_id
      FROM release_rev
      INNER JOIN release_ident ON release_ident.rev_id = release_rev.id
      WHERE release_ident.is_live = 't' AND release_ident.redirect_id IS NULL)
    TO STDOUT
    WITH NULL '';

ROLLBACK;