Re: Suddenly all tables were gone - Mailing list pgsql-general

From Tom Lane
Subject Re: Suddenly all tables were gone
Date
Msg-id 7112.1388778156@sss.pgh.pa.us
Whole thread Raw
In response to Suddenly all tables were gone  (Moshe Jacobson <moshe@neadwerx.com>)
Responses Re: Suddenly all tables were gone
List pgsql-general
Moshe Jacobson <moshe@neadwerx.com> writes:
> Yesterday I found that one of the databases in my database cluster suddenly
> lost all its tables. A \dt in psql showed nothing. I'm not sure how or when
> it happened, but it was either due to an upgrade of postgres from 9.1 to
> 9.3 or else something going wrong with pg_dump.

This sounds like a transaction ID wraparound issue, ie, the pg_class rows
are still there but you can't see them because they're "in the future".
VACUUM FREEZE would probably fix it, but the interesting question is why
didn't the built-in wraparound defenses prevent this from happening.
Could we see the output from pg_controldata?

            regards, tom lane


pgsql-general by date:

Previous
From: Kevin Grittner
Date:
Subject: Re: pg_largeobject related issue with 9.2
Next
From: Clemens Eisserer
Date:
Subject: Creating an index alters the results returned