dbTalk Databases Forums  

error opening pg_clog file

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss error opening pg_clog file in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Steve Wolfe
 
Posts: n/a

Default error opening pg_clog file - 10-12-2004 , 05:29 PM








On Saturday, our database machine locked up hard on us due to some
faulty hardware. Since then, we have been getting messages like this:

ERROR: could not access status of transaction 143934068
DETAIL: could not open file "/usr/local/pgsql/data/pg_clog/0089": No
such file or directory

Looking in /usr/local/pgsql/data/pg_clog, the "0089" file isn't
there. Some investigation revealed these messages:

http://archives.postgresql.org/pgsql...1/msg00534.php
http://www.mail-archive.com/pgsql-ad.../msg13874.html

So, I did "dd if=/dev/zero of=/usr/local/pgsql/data/pg_clog/0089
bs=8k count=1". I did an ls to verify that the file existed. I started
the postmaster back up, tried a VACUUM, and got:

vacuumdb: vacuuming of database "hyperseek" failed: ERROR: could not
access status of transaction 144565028
DETAIL: could not open file "/usr/local/pgsql/data/pg_clog/0089": No
such file or directory

I looked, and the "0089" file was gone again. Is there anything I
can do to save the situation? (The PG version is 7.4.2)

steve wolfe

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: error opening pg_clog file - 10-13-2004 , 04:46 PM






Steve Wolfe <nw (AT) codon (DOT) com> writes:
Quote:
So, I did "dd if=/dev/zero of=/usr/local/pgsql/data/pg_clog/0089
bs=8k count=1". I did an ls to verify that the file existed. I started
the postmaster back up, tried a VACUUM, and got:

vacuumdb: vacuuming of database "hyperseek" failed: ERROR: could not
access status of transaction 144565028
DETAIL: could not open file "/usr/local/pgsql/data/pg_clog/0089": No
such file or directory

I looked, and the "0089" file was gone again. Is there anything I
can do to save the situation? (The PG version is 7.4.2)
Try vacuuming the damaged database *first*. vacuumdb is probably
starting off with something that hasn't got a problem. CLOG will only
get truncated at the end of a successful database-wide vacuum ... but
in this case that's too soon.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.