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

Re: BUG #2781: database dump/restore problems

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Greg Peters" <gregpeters79(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2781: database dump/restore problems
Date: 2006-11-28 02:56:50
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
"Greg Peters" <gregpeters79(at)gmail(dot)com> writes:
> As you can see, the primary key is exported as a bigint, with a separate
> section for the sequence. This differs to the way 8.1 dumps the same table
> below:

This is an intentional change that fixes a lot of corner cases such as
renamed sequences.  The former behavior looked simple, perhaps, but it
failed outright in too many scenarios.  See
and preceding discussions in pgsql-hackers.

> I then tried to restore the DB dumped by 8.2b3 into 8.1, with no success. It
> didn't like the sequence part. This probably isn't so much a bug, but more a
> backwards compatibility issue.

We have never promised backward compatibility of pg_dump output to older
server versions.

			regards, tom lane

In response to


pgsql-bugs by date

Next:From: Tom LaneDate: 2006-11-28 02:59:06
Subject: Re: BUG #2784: Performance serious degrades over a period of a month
Previous:From: Jeff DavisDate: 2006-11-28 02:22:41
Subject: Re: [BUGS] Out of memory error causes Abort, Abort tries

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