pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Browne <cbbrowne@libertyrms.info>
To: pgsql-admin@postgresql.org
Subject: Re: pg_clog & vacuum oddness
Date: Wed, 29 Oct 2003 12:57:17 -0500
Message-ID: <60brs0j5aa.fsf@dev6.int.libertyrms.info> (raw)
References: <20031029110358.548105be.threshar@torgo.978.org>
	<5274.1067445132@sss.pgh.pa.us>
	<3F9FF092.5849E470@dhs-club.com>
	<20031029120116.228f7825.threshar@torgo.978.org>

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)



view thread (10+ messages)  latest in thread

Message-ID: <60brs0j5aa.fsf@dev6.int.libertyrms.info>
Permalink:  ../60brs0j5aa.fsf@dev6.int.libertyrms.info/
Also on:    postgresql.org/message-id/60brs0j5aa.fsf@dev6.int.libertyrms.info

 · 

reply

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: cbbrowne@libertyrms.info
  Subject: Re: pg_clog & vacuum oddness
  In-Reply-To: <60brs0j5aa.fsf@dev6.int.libertyrms.info>
  References: <20031029110358.548105be.threshar@torgo.978.org> <5274.1067445132@sss.pgh.pa.us> <3F9FF092.5849E470@dhs-club.com> <20031029120116.228f7825.threshar@torgo.978.org> <60brs0j5aa.fsf@dev6.int.libertyrms.info>

* 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