Re: [GENERAL] pg_migrator not setting values of sequences? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [GENERAL] pg_migrator not setting values of sequences?
Date
Msg-id 23975.1247674241@sss.pgh.pa.us
Whole thread Raw
In response to Re: [GENERAL] pg_migrator not setting values of sequences?  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Responses Re: [GENERAL] pg_migrator not setting values of sequences?  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: [GENERAL] pg_migrator not setting values of sequences?  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
Zdenek Kotala <Zdenek.Kotala@Sun.COM> 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 :-(
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Add encoding support to COPY
Next
From: David Blewett
Date:
Subject: Re: Add encoding support to COPY