Skip site navigation (1) Skip section navigation (2)

Re: could not locate a valid checkpoint record

From: Dilipan Sebastiampillai <dilipan(dot)sebastiampillai(at)framestore-cfc(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: could not locate a valid checkpoint record
Date: 2005-09-13 10:50:57
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<body bgcolor="#ffffff" text="#000000">
thanks a lot Tom, it worked.<br>
Tom Lane wrote:
<blockquote cite="mid10710(dot)1126278473(at)sss(dot)pgh(dot)pa(dot)us" type="cite">
  <pre wrap="">Dilipan Sebastiampillai <a class="moz-txt-link-rfc2396E" href="mailto:dilipan(dot)sebastiampillai(at)framestore-cfc(dot)com">&lt;dilipan(dot)sebastiampillai(at)framestore-cfc(dot)com&gt;</a> writes:
  <blockquote type="cite">
    <pre wrap="">I tried ( after copying thes PGDATA dir obviously ) :
pg_resetxlog /var/lib/pgsql/data/ -f
  <pre wrap=""><!---->
  <blockquote type="cite">
    <pre wrap="">After that postgreSQL starts but I realised that pg_database is empty ( 
it contains only template0 and template1 ) .
  <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

			regards, tom lane
<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=""></a>

Attachment: unknown_filename
Description: text/html (2.0 KB)

In response to

pgsql-admin by date

Next:From: Marcin GiedzDate: 2005-09-13 12:18:02
Subject: plperl again but different problem
Previous:From: Yogvinder SinghDate: 2005-09-13 09:21:48
Subject: Log file Query

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group