From: Chris White (cjwhite) <cjwhite@cisco.com>
To: pgsql-admin@postgresql.org
Subject: Trouble restoring 7.2.1 database into 7.4.2 database
Date: Fri, 9 Apr 2004 00:26:11 -0700
Message-ID: <004601c41e03$eeef4590$77976b80@amer.cisco.com> (raw)
I have table defined as follows:
create table vm_emailjob
(
JobId serial not null,
MessageId varchar(128) not null,
Recipients bytea not null,
SendTime bigint not null,
QueuedTime bigint not null,
RetryCount integer not null,
primary key (JobId)
);
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
and the restore fails. If I edit the pg_backup_db.c to display what's
statements are being executed I see the following:
sending: 'DROP TABLE "vm_emailjob";'
sending: 'DROP SEQUENCE "vm_emailjob_jobid_seq";'
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.
If I do the restore on a 7.2.1 database I have no problem.
How can I get around this?
Chris White
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: cjwhite@cisco.com
Subject: Re: Trouble restoring 7.2.1 database into 7.4.2 database
In-Reply-To: <004601c41e03$eeef4590$77976b80@amer.cisco.com>
References: <004601c41e03$eeef4590$77976b80@amer.cisco.com>
* 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