From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff <threshar@torgo.978.org>
Cc: DHS Webmaster <webmaster@dhs-club.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_clog & vacuum oddness
Date: Wed, 29 Oct 2003 12:23:17 -0500
Message-ID: <12761.1067448197@sss.pgh.pa.us> (raw)
In-Reply-To: <20031029120116.228f7825.threshar@torgo.978.org>
References: <20031029110358.548105be.threshar@torgo.978.org>
<5274.1067445132@sss.pgh.pa.us>
<3F9FF092.5849E470@dhs-club.com>
<20031029120116.228f7825.threshar@torgo.978.org>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, threshar@torgo.978.org, webmaster@dhs-club.com
Subject: Re: pg_clog & vacuum oddness
In-Reply-To: <12761.1067448197@sss.pgh.pa.us>
References: <20031029110358.548105be.threshar@torgo.978.org> <5274.1067445132@sss.pgh.pa.us> <3F9FF092.5849E470@dhs-club.com> <20031029120116.228f7825.threshar@torgo.978.org> <12761.1067448197@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox