pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Alan Donald <critirc@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Database Corruption, Tables, Databases missing
Date: Sun, 24 Apr 2005 07:30:14 -0600
Message-ID: <20050424133014.GA66001@winnie.fuhr.org> (raw)
In-Reply-To: <66a4b63105042402435842a8e4@mail.gmail.com>
References: <66a4b63105042402435842a8e4@mail.gmail.com>

On Sun, Apr 24, 2005 at 03:43:20PM +0600, Alan Donald wrote:
>
> I have a few databases running on a postgres database server. 
> 
> Everything was working fine and then yesterday when I logged in, there
> were a few databases that are missing. These tables cannot be seen in
> the pg_database table. Also I cannot see these tables via pg_admin and
> understandable so.

Are you doing regular database-wide vacuums?  What's the result of
the following query?

SELECT datname, age(datvacuumxid), age(datfrozenxid) FROM pg_database

> Please tell me what the issue is, why it is happening and how I can I
> restore the database.

Without more information it's hard to say, but you might have
encountered transaction ID wraparound; the above query should answer
that question.  See the "Routine Database Maintenance Tasks" chapter
in the documentation for more info.

Is it possible that the databases were dropped?

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/



view thread (2+ messages)

Message-ID: <20050424133014.GA66001@winnie.fuhr.org>
Permalink:  ../20050424133014.GA66001@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050424133014.GA66001@winnie.fuhr.org

 · 

reply

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: mike@fuhr.org, critirc@gmail.com
  Subject: Re: Database Corruption, Tables, Databases missing
  In-Reply-To: <20050424133014.GA66001@winnie.fuhr.org>
  References: <66a4b63105042402435842a8e4@mail.gmail.com> <20050424133014.GA66001@winnie.fuhr.org>

* 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