Re: pg_clog & vacuum oddness

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff <threshar(at)torgo(dot)978(dot)org>
Cc: DHS Webmaster <webmaster(at)dhs-club(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_clog & vacuum oddness
Date: 2003-10-29 17:23:17
Message-ID: 12761.1067448197@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Jeff <threshar(at)torgo(dot)978(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2003-10-29 17:24:33 Re: pg_clog & vacuum oddness
Previous Message DHS Webmaster 2003-10-29 17:17:59 Re: pg_clog & vacuum oddness