Re: Database 'xxxx', OID yyyyy, has disappeared from pg_database

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Glenn <mike(at)mglenn(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Database 'xxxx', OID yyyyy, has disappeared from pg_database
Date: 2002-04-25 14:04:58
Message-ID: 25260.1019743498@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Michael Glenn <mike(at)mglenn(dot)com> writes:
> The log is only 98K.

Okay, then you haven't executed four billion transactions...

Probably the next thing is to look at pg_database and try to understand
why all the rows are showing as dead. There are a couple of tools
around that can dump out the contents of tuple headers. I'd suggest
pg_filedump (http://sources.redhat.com/rhdb/tools.html), but it is
intended for 7.1/7.2 and you'd need to do a little surgery to make it
work on 7.0 files. (I think ripping out the code that expects an LSN
field to be present in the page header would be enough.) If you check
the PG list archives you will find references to one or two older
programs in the same vein; there might still be something available
that will work on 7.0 files without modification.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Florian Weimer 2002-04-25 16:08:07 pg_restore and permissions
Previous Message Marin Dimitrov 2002-04-25 13:59:37 Re: benchmarking tools