From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Glenn <mike@mglenn.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Database 'xxxx', OID yyyyy, has disappeared from pg_database
Date: Wed, 24 Apr 2002 18:52:37 -0400
Message-ID: <19898.1019688757@sss.pgh.pa.us> (raw)
In-Reply-To: <3CC730B4.3090408@mglenn.com>
References: <3CC730B4.3090408@mglenn.com>
Michael Glenn <mike@mglenn.com> writes:
> I receive the following error when trying to connect to ALL postgres
> databases on my system.
> Database 'xxxx', OID yyyyy, has disappeared from pg_database
Hmm. The only thing I can think of that might cause that for all DBs
at once is transaction ID wraparound. How large is your pg_log file
($PGDATA/pg_log, in 7.0)? If it's 1GB then that's what happened to you.
> The various archives have other users that had this problem and the
> solution is to vacuum the pg_database, however;
> bash$ vacuumdb pg_database
> psql: FATAL 1: Database "pg_database" does not exist in the system catalog.
There are problems that can cause this error message for individual
databases, and the solution is to connect to another database and vacuum
the pg_database table (not the pg_database database; there isn't one).
But that won't help if you can't get into anything to begin with.
> PostgreSQL 7.0.0 - yeah, I know I should have upgraded. SOL?
Could be :-(. If your pg_log is not 1GB in size then you didn't have a
wraparound and maybe we can still help you. Otherwise, I hope you made
a backup recently.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, mike@mglenn.com
Subject: Re: Database 'xxxx', OID yyyyy, has disappeared from pg_database
In-Reply-To: <19898.1019688757@sss.pgh.pa.us>
References: <3CC730B4.3090408@mglenn.com> <19898.1019688757@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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