pg_dump: query to get data of sequence "blahblahthis" returned name "blahblahthat"

From: "Robert John Shepherd" <robert(at)reviewer(dot)co(dot)uk>
To: <pgsql-general(at)postgresql(dot)org>
Subject: pg_dump: query to get data of sequence "blahblahthis" returned name "blahblahthat"
Date: 2002-10-17 00:01:24
Message-ID: 001401c27570$67453150$f3b0313e@LAIKA
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

When trying to do a pg_dumpall I get:

dumping database "Reviewer"...
pg_dump: query to get data of sequence "intartistmemberindex_key"
returned name "tblartistsmembers_intartistmemb"
pg_dump failed on Reviewer, exiting

Having googled around a bit I've discovered this is because I have
renamed a few sequences. Since I had no choice but to do this (either
postgresql or pgadmin II has a 30 character limit for sequence names,
and the ones the migration wizard creates on importing are over 30 chars
and so get chopped off, leaving invalid sequences referenced in the
defaults of various fields, /me breaths out), is there any known fix to
work around this problem?

Don't like not being able to back up a database properly and regularly.
:)

Thanks in advance for any help.

Yours Unwhettedly,
Robert John Shepherd.

Editor
DVD REVIEWER
The UK's BIGGEST Online DVD Magazine
http://www.dvd.reviewer.co.uk

For a copy of my Public PGP key, email: pgp(at)robertsworld(dot)org(dot)uk

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-10-17 03:01:30 Re: pg_dump: query to get data of sequence "blahblahthis" returned name "blahblahthat"
Previous Message Mitch 2002-10-16 23:13:02 Changing database ownership