aboutsummaryrefslogtreecommitdiffstats
path: root/extra/sql_dumps/dump_release_extid.sql
blob: 5e93cb1d04163c3d69bf50cce11cb35093a4b6c6 (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
      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;