From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>, Tilmann Singer <tils(at)tils(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [GENERAL] pg_migrator not setting values of sequences? |
Date: | 2009-07-16 04:09:22 |
Message-ID: | 200907160409.n6G49M909728@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Tom Lane wrote:
> Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)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(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2009-07-16 04:11:19 | Re: [GENERAL] pg_migrator not setting values of sequences? |
Previous Message | Bruce Momjian | 2009-07-16 04:07:52 | Re: [GENERAL] pg_migrator not setting values of sequences? |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2009-07-16 04:11:19 | Re: [GENERAL] pg_migrator not setting values of sequences? |
Previous Message | Bruce Momjian | 2009-07-16 04:07:52 | Re: [GENERAL] pg_migrator not setting values of sequences? |