Re: error creating/setting sequence, pg_dump / pg_restore 8.1.5

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mason Hale" <masonhale(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: error creating/setting sequence, pg_dump / pg_restore 8.1.5
Date: 2007-04-14 22:23:09
Message-ID: 23601.1176589389@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Mason Hale" <masonhale(at)gmail(dot)com> writes:
> On 4/14/07, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> The methodology that pre-8.2 pg_dump uses for serial columns is
>> vulnerable to quite a number of problems if serial sequences don't have
>> the expected names, and this seems to be another one.

> I assume it would not be advisable to use the 8.2 version of pg_dump, if I
> intend to restore to an 8.1 database, correct?

Unfortunately not; the fix for this involves a server-side feature that
doesn't exist in 8.1, so the dump will flat out not work. You could
however use the newer pg_dump to dump from 8.1 if you were intending an
upgrade, and it would successfully reproduce the older DB's state in 8.2.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-04-14 22:26:22 Re: pg_dump seg fault on sequences
Previous Message Tom Lane 2007-04-14 22:09:18 Re: Help setting up warm standby replication