Received: from jupiter.hub.org (jupiter.hub.org [64.49.215.5]) by postgresql.org (Postfix) with ESMTP id 2B55B475484 for ; Thu, 21 Feb 2002 10:40:50 -0500 (EST) Received: (from news@localhost) by jupiter.hub.org (8.11.6/8.11.6) id g1LFTFU63874 for pgsql-admin@postgresql.org; Thu, 21 Feb 2002 09:29:15 -0600 (CST) (envelope-from news) From: s.chava@wcom.com (Srinivasa Rao Chava) X-Newsgroups: comp.databases.postgresql.admin Subject: pg_dumpall and pg_dumps Date: 21 Feb 2002 07:29:16 -0800 Organization: http://groups.google.com/ Lines: 29 Message-ID: <66d229f1.0202210729.1414c5cc@posting.google.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-admin@postgresql.org X-Archive-Number: 200202/258 X-Sequence-Number: 3411 Hai, 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. Finally I have decided to use pg_dump. It has also got the following bugs in it. It is not setting the sequence values correctly. I took backup using pg_dump and restored it with psql. The sequence value in the database when I took pg_dump is 11. BUt when I restored it, it is setting to intial value i.e. one instead of current value of the sequence. I opened the dump file and checked it. It is setting as follows. 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. but it is not doing so. It is keeping the previous owner connection and giving another error that psql:mytest.out:3069: ERROR: mysequence.setval: you don't have permissions to set sequence mysequence. That means it is even unable to set the wrong value i.e the SELECT setval ('"mysequence"', 1, 't'); I took the dump in postgresql7.1.3 and restored in postgresql7.2.0. I have built the postgresql7.2.0 from CVS repository which takes nightly snapshot. Thanks chava