Re: pg_dumpall failure - could not access status of transaction

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Cc: "Robert Leftwich" <pg(at)rtl(dot)fmailbox(dot)com>
Subject: Re: pg_dumpall failure - could not access status of transaction
Date: 2007-02-03 01:25:18
Message-ID: 200702030225.19976.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Robert Leftwich wrote:
> pg_dump: Error message from server: ERROR: could not access status
> of transaction 3183024
> DETAIL: could not open file "pg_clog/0003": No such file or
> directory

If your database system has already experienced on the order of 3183024
transactions, then you should wonder where that file went. Otherwise
you probably have garbage on disk, pointing to a transaction that
hasn't happened yet. This is usually hardware trouble in any case,
unless you have actually deleted the file manually.

The alternative is that your database system has already seen more than
2^32 transactions and you have hit some bug in the transaction
wraparound, but that would be much less likely than the above cases.

> I'm (obviously) lost here - what is the correct way to track down the
> appropriate file and record to point pg_filedump at to view any
> corruption?

Look for something that contains 3183024 as a four-byte integer.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2007-02-03 02:21:47 Re: pg_dumpall failure - could not access status of transaction
Previous Message Bruce Momjian 2007-02-03 00:41:32 Re: DST changes for 2007