Re: Can't pg_dumpall, claims database exists twice

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Scott Ribe <scott_ribe(at)killerbytes(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Can't pg_dumpall, claims database exists twice
Date: 2005-03-28 19:25:14
Message-ID: 7852.1112037914@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Scott Ribe <scott_ribe(at)killerbytes(dot)com> writes:
>> Now how the heck did that happen? That's not some kind of weird UPDATE
>> failure, because the rows have different OIDs ... it seems like the
>> newer row must have been explicitly inserted, and it should surely have
>> been blocked by the unique index on datname. Are there subdirectories
>> under $PGDATA/base for both of those OIDs?

> No, in fact there is only template1, template0, and 1 of the pedcard
> instances. Am I right that this simplifies things greatly?

Yeah, you can just brute-force delete the row with the OID that doesn't
correspond to any existing subdirectory. But that makes it even odder
... where did that row come from??? Have you done any database-level
operations at all lately?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas F.O'Connell 2005-03-28 19:30:42 Re: Linux Filesystem for PG
Previous Message Scott Marlowe 2005-03-28 19:23:27 Re: Table partition for very large table