Skip site navigation (1) Skip section navigation (2)

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

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 (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-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. +

In response to

Responses

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2009-07-16 04:11:19
Subject: Re: [GENERAL] pg_migrator not setting values of sequences?
Previous:From: Bruce MomjianDate: 2009-07-16 04:07:52
Subject: Re: [GENERAL] pg_migrator not setting values of sequences?

pgsql-general by date

Next:From: Bruce MomjianDate: 2009-07-16 04:11:19
Subject: Re: [GENERAL] pg_migrator not setting values of sequences?
Previous:From: Bruce MomjianDate: 2009-07-16 04:07:52
Subject: Re: [GENERAL] pg_migrator not setting values of sequences?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group