From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Andrew Sullivan <ajs(at)crankycanuck(dot)ca> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Problem with pg_dump |
Date: | 2007-05-22 16:14:56 |
Message-ID: | 46531700.60407@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Andrew Sullivan wrote:
> On Tue, May 22, 2007 at 04:36:49PM +0200, znahor-news(at)netsync(dot)pl wrote:
>> pg_dump on master works fine. On slave i've got error on start of
>> dumping:
>>
>> -bash-3.00$ pg_dump -d -D my_database
>> pg_dump: failed sanity check, parent table OID 225893092 of
>> pg_rewrite entry OID 225893271 not found
>
> You're using Slony, right? You can't use pg_dump on a database where
> _any_ table is Slony-replicated right now. Yes, this is due to the
> catalogue corruption Slony introduces. There's an alternative in the
> Slony tools/ directory.
I'll be - I've obviously never tried pg_dump-ing a slave node. It does
say it here in black-and white though:
"This represents something of a "corruption" of the data dictionary, and
is why you should not directly use pg_dump to dump schemas on subscribers."
http://slony.info/adminguide/slony1-1.2.6/doc/adminguide/slonyintro.html
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Huxton | 2007-05-22 16:21:48 | Re: Permance issues with migrated db |
Previous Message | Joshua D. Drake | 2007-05-22 16:00:12 | Re: Problem with pg_dump |