]> granicus.if.org Git - postgresql/commit
In pg_dump, dump SEQUENCE SET items in the data not pre-data section.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Oct 2012 16:12:48 +0000 (12:12 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Oct 2012 16:12:48 +0000 (12:12 -0400)
commit725fa25e20248800461b06802f5ee9a203825618
treeb5613c0ddaaba458eafc4cfb411e31a919a7a974
parent1dec7c7c6ccd70318a71d058b7af9da149041b33
In pg_dump, dump SEQUENCE SET items in the data not pre-data section.

Represent a sequence's current value as a separate TableDataInfo dumpable
object, so that it can be dumped within the data section of the archive
rather than in pre-data.  This fixes an undesirable inconsistency between
the meanings of "--data-only" and "--section=data", and also fixes dumping
of sequences that are marked as extension configuration tables, as per a
report from Marko Kreen back in July.  The main cost is that we do one more
SQL query per sequence, but that's probably not very meaningful in most
databases.

Back-patch to 9.1, since it has the extension configuration issue even
though not the --section switch.
doc/src/sgml/ref/pg_dump.sgml
src/bin/pg_dump/pg_dump.c