Re: problem with maintenance script and missing pg_clog files with pg 7.2.1

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ben Roberts <benroberts(at)runtime-collective(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, ticket-5082(at)runtime-collective(dot)com
Subject: Re: problem with maintenance script and missing pg_clog files with pg 7.2.1
Date: 2002-09-25 04:55:00
Message-ID: 27665.1032929700@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ben Roberts <benroberts(at)runtime-collective(dot)com> writes:
> The scheduled maintenance script throws the following error:

> FATAL 2: open of /2/var/lib/postgres/data/pg_clog/0002 failed: No such file
> or directory

Could we see the results of ls -l /2/var/lib/postgres/data/pg_clog ?

It would seem that you have a tuple somewhere with a bogus transaction
number in it, which leads the tuple validity check code to try to access
a nonexistent segment of the transaction commit log (clog). It's hard
to say more without an idea of what reasonable transaction numbers are
in your installation; so the names and sizes of the files in the clog
directory are interesting ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Murali Mohan Kasetty 2002-09-25 06:01:21 Administrator issue
Previous Message Neil Conway 2002-09-25 01:19:46 Re: Error at startup