From: Tom Lane <tgl@sss.pgh.pa.us>
To: cjwhite@cisco.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Trouble restoring 7.2.1 database into 7.4.2 database
Date: Fri, 09 Apr 2004 08:51:06 -0400
Message-ID: <24720.1081515066@sss.pgh.pa.us> (raw)
In-Reply-To: <004601c41e03$eeef4590$77976b80@amer.cisco.com>
References: <004601c41e03$eeef4590$77976b80@amer.cisco.com>
"Chris White (cjwhite)" <cjwhite@cisco.com> writes:
> When I restore a backup into a 7.4.2 database from a backup made on
> 7.2.1 database, using the clean option, I get the following error.
>
> pg_restore: [archiver (db)] could not execute query: ERROR: sequence
> "vm_emailjob_jobid_seq" does not exist
>
> Looks like the Drop table is also deleting the sequence.
Yup, serial columns work that way since 7.3 or so. Unfortunately 7.2's
pg_dump does not know that.
> How can I get around this?
Don't use --clean, or use 7.4's pg_dump to dump from the older server.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, cjwhite@cisco.com
Subject: Re: Trouble restoring 7.2.1 database into 7.4.2 database
In-Reply-To: <24720.1081515066@sss.pgh.pa.us>
References: <004601c41e03$eeef4590$77976b80@amer.cisco.com> <24720.1081515066@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox