pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: s.chava@wcom.com
To: pgsql-admin@postgresql.org
Subject: pg_dumpall and pg_dumps
Date: 21 Feb 2002 07:29:16 -0800
Message-ID: <66d229f1.0202210729.1414c5cc@posting.google.com> (raw)

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



view thread (5+ messages)  latest in thread

Message-ID: <66d229f1.0202210729.1414c5cc@posting.google.com>
Permalink:  ../66d229f1.0202210729.1414c5cc@posting.google.com/
Also on:    postgresql.org/message-id/66d229f1.0202210729.1414c5cc@posting.google.com

 · 

reply

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: s.chava@wcom.com
  Subject: Re: pg_dumpall and pg_dumps
  In-Reply-To: <66d229f1.0202210729.1414c5cc@posting.google.com>
  References: <66d229f1.0202210729.1414c5cc@posting.google.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