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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

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


  • From: Bruce Momjian <bruce(at)momjian(dot)us>
  • To: Tilmann Singer <tils(at)tils(dot)net>
  • Cc: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
  • Subject: Re: [GENERAL] pg_migrator not setting values of sequences?
  • Date: Mon, 13 Jul 2009 18:29:36 -0400 (EDT)
  • Message-id: <200907132229.n6DMTat07701@momjian.us> <text/plain>

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?

[ CC to hackers.]

Wow, that is also surprising.  I am going to have to run some tests to
find the cause, but it certainly is not intended.

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



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group