pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: William Meloney <bmeloney@mindspring.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Vacuum returns error
Date: Wed, 03 Apr 2002 15:33:37 -0500
Message-ID: <12299.1017866017@sss.pgh.pa.us> (raw)
In-Reply-To: <3CAB0B66.87.239A0A68@localhost>
References: <3CA86EBF.13182.1965C6B9@localhost>
	<3CAB0B66.87.239A0A68@localhost>

"William Meloney" <bmeloney@mindspring.com> writes:
> Developer dropped ~30+ tables from 4 different DBs on the same 
> server.  Queiries began to fail: unable to locate file; 
> /var/lib/pgsql/pg_clog/0006.
>> 
>> Hmm.  What files do you actually have in /var/lib/pgsql/pg_clog?
> [ info snipped ]

Okay.  It seems quite clear that you've executed less than a million
transactions so far in this installation; so 0000 is the only clog
segment that does or should exist, and there's no valid reason
for anything to be trying to access segment 0006.  I do not think
this could be a clog logic error as I first suspected; it's probably
more like a garden-variety data corruption problem, ie, something
dropped a bit and there's now an xmin or xmax field someplace that
contains a bogus transaction ID up in the six-million-something range.

My advice is to try to track down and get rid of the bad tuple.

			regards, tom lane



view thread (5+ messages)

Message-ID: <12299.1017866017@sss.pgh.pa.us>
Permalink:  ../12299.1017866017@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12299.1017866017@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, bmeloney@mindspring.com
  Subject: Re: Vacuum returns error
  In-Reply-To: <12299.1017866017@sss.pgh.pa.us>
  References: <3CA86EBF.13182.1965C6B9@localhost> <3CAB0B66.87.239A0A68@localhost> <12299.1017866017@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox