X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.192]) by svr1.postgresql.org (Postfix) with ESMTP id DB3DFD1C4DC for ; Mon, 21 Jul 2003 04:20:12 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr4.postgresql.org [64.117.224.192]) (amavisd-new, port 10024) with ESMTP id 89992-08 for ; Mon, 21 Jul 2003 04:20:11 +0000 (GMT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id BE7CDD1C4B7 for ; Mon, 21 Jul 2003 01:20:09 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h6L4K0026582; Mon, 21 Jul 2003 00:20:00 -0400 (EDT) From: Bruce Momjian Message-Id: <200307210420.h6L4K0026582@candle.pha.pa.us> Subject: Re: Renaming a DB In-Reply-To: <19811.1058760567@sss.pgh.pa.us> To: Tom Lane Date: Mon, 21 Jul 2003 00:20:00 -0400 (EDT) Cc: Mendola Gaetano , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/198 X-Sequence-Number: 9538 Oh, I forgot that the backends are reading the raw disk files to find database names. Thanks. --------------------------------------------------------------------------- Tom Lane wrote: > Bruce Momjian writes: > > Tom, why was a VACUUM FULL required? > > I doubt that it was; a VACUUM would have sufficed to fix the tuple > commit bits. What I forgot to recommend was a CHECKPOINT to make > sure the fixed pages got dumped to disk. (Until they're written > out to the kernel, a new backend would still see the old pages > when it's doing the GetRawDatabaseInfo cruft.) > > I think a VAC FULL would have flushed dirty pages, but a plain VACUUM > wouldn't, so VAC FULL is a second way of getting the result. > > regards, tom lane > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073