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

From Bruce Momjian
Subject Re: [GENERAL] pg_migrator not setting values of sequences?
Date
Msg-id 200907160409.n6G49M909728@momjian.us
Whole thread Raw
In response to Re: [GENERAL] pg_migrator not setting values of sequences?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [GENERAL] pg_migrator not setting values of sequences?
Re: [GENERAL] pg_migrator not setting values of sequences?
List pgsql-hackers
Tom Lane wrote:
> 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 :-(

Uh, how is this going to behave in 8.5?  Do we still dump sequences, and
if so, aren't we heading down the road of dumping stuff only because a
previous release needed it?

Can we run a query that just shifts columns around in the sequence heap
files we migrated?

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] pg_migrator not setting values of sequences?
Next
From: Robert Haas
Date:
Subject: Re: [PATCH] SE-PgSQL/lite rev.2163