Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 70E064758E0 for ; Thu, 21 Feb 2002 12:53:55 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g1LHrxS08544; Thu, 21 Feb 2002 12:54:00 -0500 (EST) To: s.chava@wcom.com (Srinivasa Rao Chava) Cc: pgsql-admin@postgresql.org Subject: Re: pg_dumpall and pg_dumps In-reply-to: <66d229f1.0202210729.1414c5cc@posting.google.com> References: <66d229f1.0202210729.1414c5cc@posting.google.com> Comments: In-reply-to s.chava@wcom.com (Srinivasa Rao Chava) message dated "21 Feb 2002 07:29:16 -0800" Date: Thu, 21 Feb 2002 12:53:59 -0500 Message-ID: <8541.1014314039@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200202/260 X-Sequence-Number: 3413 s.chava@wcom.com (Srinivasa Rao Chava) writes: > Pg_dumpall is giving hard time in restoring the database.I opened the > dump and checked it . There are lot of problem in connectin and > reconnecting and plpgsql language call handler. This is not helpful; if you want us to fix things you're going to have to give details. There are known problems in reloading 7.1 dumps into 7.2 if you use mixed-case user names or database names; might that be the source of some of your problems? Are there other problems? > SELECT setval ('"mysequence"', 1, 't'); Notonly that , there is > one more error. At the time of setting the sequence value, it has > to reconnect as the sequence owner. Yup, this is a known bug in 7.1's pg_dump. It is fixed in current sources, but we cannot retroactively make the problem go away :-(. The only solution I can offer you at the moment is manual editing of the dump script. When 7.2.1 comes out, a reasonable alternative will be to use 7.2.1's pg_dump to perform the dump from 7.1. regards, tom lane