problems with corrupted db on v7.0.3 on linux 2.2.x

From: "P(dot) A(dot) Bagyenda" <bagyenda(at)dsmagic(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: problems with corrupted db on v7.0.3 on linux 2.2.x
Date: 2001-04-18 18:01:57
Message-ID: 3ADDD695.9F592E63@dsmagic.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I am in the middle of a rather nasty experience that I hope someone
out
there can help solve.

My hard disk partition with the postgres data directory got full. I
tried to shut down postgres so I could clear some space, nothing
happened. So I did a reboot. On restart (after clearing some
pg_sorttemp.XX files), I discovered that all my tables appear empty!
When I check in the data directories of the databases, I see that the
files for each table have data (they are still of the size as before).

I've been running some experiments on another machine and notice that
if I remove the pg_log file, databases seem to disappear (or data to
become invisible). So I am guessing that postgres is looking in one
place and deciding there is no data. Now I need to get my data of
course! Any solutions?? My programming skills are generally very good
so
if it involves some code I'd have no problem. How do I get a dump of
the
raw data (saw copy-style output) from the table files? Please help!

Thanks

Paul Bagyenda

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-04-18 18:22:48 CRN article not updated
Previous Message Sergiy Ovcharuk 2001-04-18 17:43:38 get difference between two timestamp value in second?