Re: Loss of data and info from system tables!! - Mailing list pgsql-novice

From Michael Fuhr
Subject Re: Loss of data and info from system tables!!
Date
Msg-id 20050331034911.GA38722@winnie.fuhr.org
Whole thread Raw
In response to Loss of data and info from system tables!!  (Noel Faux <noel.faux@med.monash.edu.au>)
Responses Re: Loss of data and info from system tables!!
List pgsql-novice
On Thu, Mar 31, 2005 at 03:12:53AM +0000, Noel Faux wrote:
>
> On the 27th March I notice that one of my web sites was giving me some
> weird errors.  When I looked at the SQL statements generating these
> error I found that there were no results from these queries.  When I
> selected on the table 'protein_database' I discovered that the database
> the web site refers to did not exist!! This was all fine 3 days prior!
> After further selects on more tables it became apparent there was data
> loss across a large number of tables. Now I feel extremely ill!  It
> seemed that data which was added to the database when it was initially
> created was lost.  As data which I have recently added was still there.

Are you doing regular VACUUMs of the database?  What's the result of
the following query?

SELECT oid, xmin, cmin, xmax, cmax, datname,
       age(datvacuumxid) AS vxid,
       age(datfrozenxid) AS fxid
FROM pg_database;

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

pgsql-novice by date:

Previous
From: Jaime Casanova
Date:
Subject: Re: how to ignore accents?
Next
From: Noel Faux
Date:
Subject: Re: Loss of data and info from system tables!!