Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id E8BEA9FA618 for ; Wed, 7 Mar 2007 22:08:24 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 54663-10 for ; Wed, 7 Mar 2007 22:08:16 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from alnrmhc11.comcast.net (alnrmhc11.comcast.net [206.18.177.51]) by postgresql.org (Postfix) with ESMTP id B414B9FA617 for ; Wed, 7 Mar 2007 22:08:21 -0400 (AST) Received: from [10.1.2.100] (c-75-70-110-235.hsd1.co.comcast.net[75.70.110.235]) by comcast.net (alnrmhc11) with ESMTP id <20070308020816b1100a3v15e>; Thu, 8 Mar 2007 02:08:20 +0000 From: "Ed L." To: Martijn van Oosterhout Subject: Re: vacuum error Date: Wed, 7 Mar 2007 19:07:45 -0700 User-Agent: KMail/1.8.1 Cc: Peter Eisentraut , pgsql-general@postgresql.org, "Joshua D. Drake" References: <200703061110.08896.pgsql@bluepolka.net> <200703070229.08796.pgsql@bluepolka.net> <20070307101335.GC1482@svana.org> In-Reply-To: <20070307101335.GC1482@svana.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703071907.45462.pgsql@bluepolka.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/389 X-Sequence-Number: 110579 On Wednesday March 7 2007 3:13 am, Martijn van Oosterhout wrote: > On Wed, Mar 07, 2007 at 02:29:08AM -0700, Ed L. wrote: > > Perhaps my question was not clear enough. Let me rephrase: > > Does the fix for this problem comes from a *fresh* DB > > structure resulting from the initdb, or from a software fix > > in 8.1.8, or both? The answer makes a big difference with a > > 200gb database. If it's in the software alone, we can simply > > restart. If it's in the DB structure, we have to migrate > > 200gb of data from one PGDATA to another. > > In your case you could also get running by creating the > missing file, but whether that's appropriate depends on the > cause. I'd check the release notes to see if any related bugs > have been fixed since then. How would I go about correctly creating the missing file? That sounds appealing, as if it were something I could do without taking downtime. Is it? In reviewing the release notes between 8.1.2 and 8.1.8, there are a number of vacuum fixes along with many others. It is unclear if any of them are related. Given this error is occurring while doing a "VACUUM FREEZE" of the template0 database, I wonder if that creates any options for me? Frankly, I'd be happy to simply drop the template0 DB if I could, since I'm not aware that we ever need it for anything. Ed