Re: could not locate a valid checkpoint record - Mailing list pgsql-admin

From Dilipan Sebastiampillai
Subject Re: could not locate a valid checkpoint record
Date
Msg-id 4326AF11.3060108@framestore-cfc.com
Whole thread Raw
In response to Re: could not locate a valid checkpoint record  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
thanks a lot Tom, it worked.<br /><br /> Dilipan<br /><br /><br /> Tom Lane wrote: <blockquote
cite="mid10710.1126278473@sss.pgh.pa.us"type="cite"><pre wrap="">Dilipan Sebastiampillai <a
class="moz-txt-link-rfc2396E"
href="mailto:dilipan.sebastiampillai@framestore-cfc.com"><dilipan.sebastiampillai@framestore-cfc.com></a>writes:
</pre><blockquotetype="cite"><pre wrap="">I tried ( after copying thes PGDATA dir obviously ) : 
pg_resetxlog /var/lib/pgsql/data/ -f   </pre></blockquote><pre wrap=""> </pre><blockquote type="cite"><pre
wrap="">Afterthat postgreSQL starts but I realised that pg_database is empty (  
it contains only template0 and template1 ) .   </pre></blockquote><pre wrap="">
It sounds like pg_resetxlog guessed at an XID counter that is too small
and so all your data rows seem to be "in the future".

You need to find out approximately where the XID counter had been.
You can probably tell this by looking at the pg_clog directory;
read the pg_resetxlog man page for details.  I would suggest paying
close attention to the other settable options for resetxlog, too
--- if it got XID wrong then it likely got the others wrong as well.

Once you get out of this I'd suggest a dump/initdb/restore to make
sure your data is consistent; you may well have more problems than
appear on the surface.

Oh, and updating to the latest release of the 7.4 branch would be
a good idea too ;-).  There are some pretty serious known bugs in
7.4.5.
        regards, tom lane </pre></blockquote><br /><br /><pre class="moz-signature" cols="72">--


Dilipan Sebastiampillai
Systems - DBA
Framestore CFC
9 Noel Street
London W1F 8GH
tel : +44(0)20 7106 2907
<a class="moz-txt-link-freetext" href="http://www.framestore-cfc.com/">http://www.framestore-cfc.com/</a>
</pre>

pgsql-admin by date:

Previous
From: "Yogvinder Singh"
Date:
Subject: Log file Query
Next
From: Marcin Giedz
Date:
Subject: plperl again but different problem