Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 703F2475484 for ; Wed, 3 Apr 2002 15:33:38 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g33KXbF12302; Wed, 3 Apr 2002 15:33:38 -0500 (EST) To: "William Meloney" Cc: pgsql-admin@postgresql.org Subject: Re: Vacuum returns error In-reply-to: <3CAB0B66.87.239A0A68@localhost> References: <3CA86EBF.13182.1965C6B9@localhost> <3CAB0B66.87.239A0A68@localhost> Comments: In-reply-to "William Meloney" message dated "Wed, 03 Apr 2002 14:02:14 -0600" Date: Wed, 03 Apr 2002 15:33:37 -0500 Message-ID: <12299.1017866017@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200204/41 X-Sequence-Number: 3930 "William Meloney" 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