Re: Loss of data and info from system tables!!

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Noel Faux <noel(dot)faux(at)med(dot)monash(dot)edu(dot)au>
Cc: Postgres <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Loss of data and info from system tables!!
Date: 2005-03-31 03:49:11
Message-ID: 20050331034911.GA38722@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Noel Faux 2005-03-31 04:41:04 Re: Loss of data and info from system tables!!
Previous Message Jaime Casanova 2005-03-31 03:23:31 Re: how to ignore accents?