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: 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-14 02:37:02
Message-ID: 200907140237.n6E2b2x27210@momjian.us (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-hackers
Tom Lane wrote:
> Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > Tilmann Singer wrote:
> >> 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.
> 
> > Wow, that is also surprising.  I am going to have to run some tests to
> > find the cause, but it certainly is not intended.
> 
> Looks like pg_migrator neglects to include relkind 'S' in the set of
> tables that it needs to physically migrate.

Thanks, I have fixed pg_migrator with the attached patch.  Once we find
the cause of the lovacuum problem, I will make a new pg_migrator release.

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

Attachment: /rtmp/diff
Description: text/x-diff (916 bytes)

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2009-07-14 02:42:53
Subject: Re: Upgrading our minimum required flex version for 8.5
Previous:From: Bruce MomjianDate: 2009-07-14 00:36:22
Subject: Re: [GENERAL] large object does not exist after pg_migrator

pgsql-general by date

Next:From: Bruce MomjianDate: 2009-07-14 03:03:04
Subject: Re: [GENERAL] large object does not exist after pg_migrator
Previous:From: AndreasDate: 2009-07-14 00:54:44
Subject: Flexibility of views and functions?

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