pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_dumpall fails
3+ messages / 2 participants
[nested] [flat]

* pg_dumpall fails
@ 2002-09-28 00:13 Willy Wonka <lunchtime@onethirty.org>
  2002-09-28 03:38 ` Re: pg_dumpall fails Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Willy Wonka @ 2002-09-28 00:13 UTC (permalink / raw)
  To: pgsql-admin

begin flood

bleh.  i can't tell if i'm getting somewhere, or running around in circles.
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
pg_dump failed on immedia2002, exiting


help?
-- 
=-=--------------------------------------------=-=
                       -.c.-

  My mistress when she walks treads on the ground.



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pg_dumpall fails
  2002-09-28 00:13 pg_dumpall fails Willy Wonka <lunchtime@onethirty.org>
@ 2002-09-28 03:38 ` Tom Lane <tgl@sss.pgh.pa.us>
  2002-09-28 17:19   ` Re: pg_dumpall fails Willy Wonka <lunchtime@onethirty.org>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2002-09-28 03:38 UTC (permalink / raw)
  To: Willy Wonka <lunchtime@onethirty.org>; +Cc: pgsql-admin

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pg_dumpall fails
  2002-09-28 00:13 pg_dumpall fails Willy Wonka <lunchtime@onethirty.org>
  2002-09-28 03:38 ` Re: pg_dumpall fails Tom Lane <tgl@sss.pgh.pa.us>
@ 2002-09-28 17:19   ` Willy Wonka <lunchtime@onethirty.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Willy Wonka @ 2002-09-28 17:19 UTC (permalink / raw)
  To: pgsql-admin

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





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2002-09-28 17:19 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-09-28 00:13 pg_dumpall fails Willy Wonka <lunchtime@onethirty.org>
2002-09-28 03:38 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-09-28 17:19   ` Willy Wonka <lunchtime@onethirty.org>

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