Re: [GENERAL] pg_migrator not setting values of sequences?

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera
Тема
Re: [GENERAL] pg_migrator not setting values of sequences?
Дата
Msg-id
20090715162308.GI4551@alvh.no-ip.org
Ответ на
Список
Дерево обсуждения
Re: [GENERAL] pg_migrator not setting values of sequences? Tom Lane <tgl@sss.pgh.pa.us>
Re: [GENERAL] pg_migrator not setting values of sequences? Bruce Momjian <bruce@momjian.us>
Re: [GENERAL] pg_migrator not setting values of sequences? Bruce Momjian <bruce@momjian.us>
Re: [GENERAL] pg_migrator not setting values of sequences? Tom Lane <tgl@sss.pgh.pa.us>
Re: [GENERAL] pg_migrator not setting values of sequences? Dimitri Fontaine <dfontaine@hi-media.com>
Re: [GENERAL] pg_migrator not setting values of sequences? Bruce Momjian <bruce@momjian.us>
Re: [GENERAL] pg_migrator not setting values of sequences? Bruce Momjian <bruce@momjian.us>
Tom Lane wrote:
> Zdenek Kotala  writes:
> > I think you don't need transfer sequence table, because pg_dump should 
> > create DDL command (CREATE SEQUENCE) which should create new nice 
> > sequence relation.
> 
> Yeah, but pg_dump is doing a schema-only dump so it doesn't transfer the
> current state of the sequence.
> 
> The most effective solution might be to revert the change in pg_migrator
> and instead have pg_dump interpret --binary-upgrade --schema-only to
> include the data for sequences.  It seems ugly as sin though :-(

It seems cleaner to have a pg_dump --dump-all-sequences or some such.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Simon Riggs
Дата:
FAQ