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

Re: pg_migrator not setting values of sequences?

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tilmann Singer <tils(at)tils(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_migrator not setting values of sequences?
Date: 2009-07-13 22:30:17
Message-ID: 200907132230.n6DMUHY07812@momjian.us (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-hackers
FYI, for general email readers, I am sending pg_migrator reports to
hackers instead of having them be dealt with on the 'general' list.

---------------------------------------------------------------------------

Tilmann Singer wrote:
> I tried the latest pg_migrator
> (http://pgfoundry.org/frs/download.php/2291/pg_migrator-8.4.tgz) to
> migrate a database from an 8.3.7 to an 8.4.0 cluster. It finished with
> a success message, and the schema and all tables seem to have been
> migrated correctly.
> 
> However, all of the sequences were at the initial values and not
> bumped up to the last used value as I would have expected. The first
> nextval call on any sequence in the migrated 8.4 database always
> returned 1.
> 
> Is this behaviour intended for some reason, or a bug?
> 
> 
> Til
> 
> -- 
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

-- 
  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

pgsql-hackers by date

Next:From: Alvaro HerreraDate: 2009-07-13 22:35:45
Subject: Re: [GENERAL] large object does not exist afterpg_migrator
Previous:From: Bruce MomjianDate: 2009-07-13 22:29:36
Subject: Re: [GENERAL] pg_migrator not setting values of sequences?

pgsql-general by date

Next:From: Alvaro HerreraDate: 2009-07-13 22:35:45
Subject: Re: [GENERAL] large object does not exist afterpg_migrator
Previous:From: Bruce MomjianDate: 2009-07-13 22:29:36
Subject: Re: [GENERAL] pg_migrator not setting values of sequences?

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