X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 1792B9DCBC6 for ; Mon, 13 Feb 2006 13:25:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 70996-05 for ; Mon, 13 Feb 2006 13:25:37 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 6AE099DCAA7 for ; Mon, 13 Feb 2006 13:25:34 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id k1DHPXYO002493; Mon, 13 Feb 2006 12:25:33 -0500 (EST) To: Steve Burrows cc: pgsql-admin@postgresql.org Subject: Re: Lost tables in Postgres 7.1 In-reply-to: <43F0ACEA.4090503@jla.com> References: <43F0ACEA.4090503@jla.com> Comments: In-reply-to Steve Burrows message dated "Mon, 13 Feb 2006 15:59:38 +0000" Date: Mon, 13 Feb 2006 12:25:33 -0500 Message-ID: <2492.1139851533@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.109 required=5 tests=[AWL=0.109] X-Spam-Score: 0.109 X-Spam-Level: X-Archive-Number: 200602/163 X-Sequence-Number: 20584 Steve Burrows writes: > Some of my tables have spontaneously disappeared. They are not visible > in pg_class. vacuuming pg_class (as suggested by Tom Lane for someone > with a similar problem) did not cause them to reappear. Not on 7.1 it wouldn't :-(. That hack is dependent on the behavior of the transaction ID wraparound code that we introduced in 7.2. First check if this actually is a wrap issue: create a new row and see if its xmin is small or large. If small, I think the only recourse in 7.1 is to set the XID counter to something just a bit less than 4G, pg_dump, initdb and reload. If you dig around in the archives from a few years back you should find discussion of exactly how to do that, but I've surely forgotten the details. regards, tom lane