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

From Christopher Browne
Subject Re: pg_clog & vacuum oddness
Date
Msg-id 60brs0j5aa.fsf@dev6.int.libertyrms.info
Whole thread Raw
In response to pg_clog & vacuum oddness  (Jeff <threshar@torgo.978.org>)
List pgsql-admin
threshar@torgo.978.org (Jeff) writes:
> On Wed, 29 Oct 2003 11:53:38 -0500
> DHS Webmaster <webmaster@dhs-club.com> wrote:
>
>> We vacuum our working database nightly. Although this is not a 'full',
>> we don't exclude any tables. We don't do anything with template1
>> (knowingly), so we do not perform any maintenance on it either.
>
> Why not go through the list in pg_database to make sure you didn't
> forget about any (like I did).
>
> given that template0 and 1 rarely change.. I don't see why we'd need to
> vacuum them

template0 is probably set to 'not changeable' so that you can't even
log in to it.

template1 probably isn't hit a _lot_, but surely not "not at all."  It
is accessed at such times as:

- When you run "createdb", data probably gets used from there to
populate the new DB.

- When you update user IDs, that's shared information likely to
"touch" template1.

You don't need to vacuum it often, but "seldom" is not quite the same
as "never."
--
output = ("cbbrowne" "@" "libertyrms.info")
<http://dev6.int.libertyrms.com/>
Christopher Browne
(416) 646 3304 x124 (land)

pgsql-admin by date:

Previous
From: Greg Stark
Date:
Subject: Re: [SQL] Table versions
Next
From: Rod Taylor
Date:
Subject: Re: Table versions