Re: [GENERAL] Database corruption.

2007-02-08 Thread Michael Guerin
Zeroing out the whole block containing it is the usual recipe. I forget the exact command but if you trawl the archives for mention of "dd" and "/dev/zero" you'll probably find it. Keep in mind you want to stop the postmaster first, to ensure it doesn't have a copy of the bad block cached in m

Re: [GENERAL] Database corruption.

2007-02-08 Thread Michael Guerin
Tom Lane wrote: Michael Guerin <[EMAIL PROTECTED]> writes: Hmm, that makes it sound like a plain old data-corruption problem, ie, trashed xmin or xmax in some tuple header. Can you do a "select count(*)" from this table without getting the error? no, select count

Re: [GENERAL] Database corruption.

2007-02-07 Thread Michael Guerin
Hmm, that makes it sound like a plain old data-corruption problem, ie, trashed xmin or xmax in some tuple header. Can you do a "select count(*)" from this table without getting the error? no, select count(*) fails around 25 millions rows. PostgreSQL 8.1RC1 on x86_64-unknown-linux-gnu, com

Re: [GENERAL] Database corruption.

2007-02-07 Thread Michael Guerin
Also, all files in pg_clog are sequential with the last file being 0135. Michael Guerin wrote: Hi, Our database filled up and now I'm getting this error on one of the tables. Is there any way to recover from this? Please let me know if more information is needed. pg_ve

[GENERAL] Database corruption.

2007-02-07 Thread Michael Guerin
Hi, Our database filled up and now I'm getting this error on one of the tables. Is there any way to recover from this? Please let me know if more information is needed. pg_version version ---