pgsql: In pg_dump, dump SEQUENCE SET items in the data not pre-data sec

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: In pg_dump, dump SEQUENCE SET items in the data not pre-data sec
Дата
Msg-id E1TRmX6-0005Rd-8D@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/725fa25e20248800461b06802f5ee9a203825618

Modified Files
--------------
doc/src/sgml/ref/pg_dump.sgml |    8 +-
src/bin/pg_dump/pg_dump.c     |  309 +++++++++++++++++++++--------------------
2 files changed, 165 insertions(+), 152 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: In pg_dump, dump SEQUENCE SET items in the data not pre-data sec
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: In pg_dump, dump SEQUENCE SET items in the data not pre-data sec