X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 236DED1CC78 for ; Fri, 9 Apr 2004 09:51:08 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 82736-06 for ; Fri, 9 Apr 2004 09:51:08 -0300 (ADT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 45510D1BBA1 for ; Fri, 9 Apr 2004 09:51:06 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i39Cp6UV024721; Fri, 9 Apr 2004 08:51:07 -0400 (EDT) To: cjwhite@cisco.com Cc: pgsql-admin@postgresql.org 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> Comments: In-reply-to "Chris White (cjwhite)" message dated "Fri, 09 Apr 2004 00:26:11 -0700" Date: Fri, 09 Apr 2004 08:51:06 -0400 Message-ID: <24720.1081515066@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/179 X-Sequence-Number: 13152 "Chris White (cjwhite)" 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