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 87D30D1C511 for ; Mon, 21 Jul 2003 04:09:34 +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 01655-02 for ; Mon, 21 Jul 2003 04:09:32 +0000 (GMT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 44254D1C4DC for ; Mon, 21 Jul 2003 01:09:32 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h6L49RQ3019812; Mon, 21 Jul 2003 00:09:27 -0400 (EDT) To: Bruce Momjian Cc: Mendola Gaetano , pgsql-admin@postgresql.org Subject: Re: Renaming a DB In-reply-to: <200307210358.h6L3wem24028@candle.pha.pa.us> References: <200307210358.h6L3wem24028@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Sun, 20 Jul 2003 23:58:40 -0400" Date: Mon, 21 Jul 2003 00:09:27 -0400 Message-ID: <19811.1058760567@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/197 X-Sequence-Number: 9537 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