Re: Renaming a DB - Mailing list pgsql-admin

From Tom Lane
Subject Re: Renaming a DB
Date
Msg-id 19811.1058760567@sss.pgh.pa.us
Whole thread Raw
In response to Re: Renaming a DB  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Renaming a DB
List pgsql-admin
Bruce Momjian <pgman@candle.pha.pa.us> 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

pgsql-admin by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Renaming a DB
Next
From: Bruce Momjian
Date:
Subject: Re: Renaming a DB