From: Willy Wonka <lunchtime@onethirty.org>
To: pgsql-admin@postgresql.org
Subject: Re: pg_dumpall fails
Date: Sat, 28 Sep 2002 13:19:49 -0400
Message-ID: <p05111709b9bb94b67fd5@[192.168.1.129]> (raw)
In-Reply-To: <9642.1033184280@sss.pgh.pa.us>
References: <p05111706b9baa4a03a55@[192.168.1.129]>
<9642.1033184280@sss.pgh.pa.us>
i'm getting further, i think.
i dropped and created the new sequence. i don't think i had to set
the current value, because currval returned
submissions_submission_id_seq.currval is not yet defined in this
session [this database isn't on a production server at the moment]
now i get a new error:
> pg_dumpall > bigdump
dumpSequence(website_suggest_id_seq): 0 (!= 1) tuples returned by SELECT
pg_dump failed on immedia2002, exiting
ok, so 0 isn't 1. is there anything i can do about this one?
-c
At 11:38 PM -0400 9/27/02, Tom Lane wrote:
>Willy Wonka <lunchtime@onethirty.org> writes:
>> i don't know what my brother has been doing on the other end, but
>> pg_dumpall now returns this:
>
> > SELECT nextval ('"art_links_id_seq"');
> > dumpSequence(submissions_submission_id_seq): different sequence name
>> returned by SELECT: submissions_n_submission_id_seq
>
>What he's been doing is renaming sequences ... pg_dump doesn't like
>that, for no particularly good reason :-(. (This gratuitous failure
>is gone in 7.3, but that doesn't help you much today.) I'd suggest
>dropping and recreating the sequence, then using setval() to set its
>current value correctly. Then you should be able to pg_dump.
>
> regards, tom lane
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: lunchtime@onethirty.org
Subject: Re: pg_dumpall fails
In-Reply-To: <p05111709b9bb94b67fd5@[192.168.1.129]>
References: <p05111706b9baa4a03a55@[192.168.1.129]> <9642.1033184280@sss.pgh.pa.us> <p05111709b9bb94b67fd5@[192.168.1.129]>
* 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