Skip to content

Commit 5a39114

Browse files
committed
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.
1 parent bf01e34 commit 5a39114

File tree

2 files changed

+165
-152
lines changed

2 files changed

+165
-152
lines changed

doc/src/sgml/ref/pg_dump.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -739,11 +739,11 @@ PostgreSQL documentation
739739
sections. The default is to dump all sections.
740740
</para>
741741
<para>
742-
The data section contains actual table data as well as large-object
743-
definitions.
744-
Post-data items consist of definitions of indexes, triggers, rules
742+
The data section contains actual table data, large-object
743+
contents, and sequence values.
744+
Post-data items include definitions of indexes, triggers, rules,
745745
and constraints other than validated check constraints.
746-
Pre-data items consist of all other data definition items.
746+
Pre-data items include all other data definition items.
747747
</para>
748748
</listitem>
749749
</varlistentry>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy