Re: pg_clog & vacuum oddness - Mailing list pgsql-admin

From Tom Lane
Subject Re: pg_clog & vacuum oddness
Date
Msg-id 12761.1067448197@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_clog & vacuum oddness  (Jeff <threshar@torgo.978.org>)
Responses Re: pg_clog & vacuum oddness
List pgsql-admin
Jeff <threshar@torgo.978.org> writes:
> given that template0 and 1 rarely change.. I don't see why we'd need to
> vacuum them

You have to vacuum template1 periodically if you want pg_clog to shrink.
You may know that you've never changed it, but the VACUUM code doesn't
know that.

template0 need not get vacuumed as long as it's marked datallowconn = false
in pg_database.  VACUUM assumes it's not been changed if that flag is
present.

            regards, tom lane

pgsql-admin by date:

Previous
From: DHS Webmaster
Date:
Subject: Re: pg_clog & vacuum oddness
Next
From: Tom Lane
Date:
Subject: Re: pg_clog & vacuum oddness