Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8E7864771C6 for ; Sat, 28 Sep 2002 13:20:50 -0400 (EDT) Received: from ltg-pmac2.ummu.umich.edu (ltg-pmac2.ummu.umich.edu [141.213.30.172]) by postgresql.org (Postfix) with ESMTP id 0244647713B for ; Sat, 28 Sep 2002 13:20:24 -0400 (EDT) Received: from [192.168.1.129] (adsl-67-38-2-222.dsl.sfldmi.ameritech.net [67.38.2.222]) by ltg-pmac2.ummu.umich.edu (Postfix) with ESMTP id DF48D84156 for ; Sat, 28 Sep 2002 13:16:52 -0500 (EST) Mime-Version: 1.0 X-Sender: willy@141.213.30.172 Message-Id: In-Reply-To: <9642.1033184280@sss.pgh.pa.us> References: <9642.1033184280@sss.pgh.pa.us> Date: Sat, 28 Sep 2002 13:19:49 -0400 To: pgsql-admin@postgresql.org From: Willy Wonka Subject: Re: pg_dumpall fails Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/307 X-Sequence-Number: 5846 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 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