From: DHS Webmaster <webmaster@dhs-club.com>
To: pgsql-admin@postgresql.org
Subject: Re: pg_clog & vacuum oddness
Date: Wed, 29 Oct 2003 11:53:38 -0500
Message-ID: <3F9FF092.5849E470@dhs-club.com> (raw)
References: <20031029110358.548105be.threshar@torgo.978.org>
<5274.1067445132@sss.pgh.pa.us>
This thread caught my eye and I decided to look at our pg_clog
directory. Sure enough we have got every clog file since we upgraded
back in April, 0000 - 02F8.
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.
Questions:
1. Should we be doing a periodic vacuum on template1?
2. Is what I am seeing possibly indicative of something else beside
template1 that would show up the postgres log.
3. It is safe to delete all the clog files prior to the last restart of
postgres, yes?
Tom Lane wrote:
>
> Jeff <threshar@torgo.978.org> writes:
> > [ pg_clog not getting truncated ]
>
> pg_clog is truncated on the basis of the oldest completely vacuumed
> database in your installation. Most likely your maintenance script
> is failing to vacuum some database(s) (template1, perhaps?) and/or
> is doing table-by-table vacuums rather than an unqualified VACUUM.
>
> I doubt this explains any performance problems though. Old pg_clog
> segments don't do anything except sit there.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
--
Bill MacArthur
Webmaster
DHS Club
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: webmaster@dhs-club.com
Subject: Re: pg_clog & vacuum oddness
In-Reply-To: <3F9FF092.5849E470@dhs-club.com>
References: <20031029110358.548105be.threshar@torgo.978.org> <5274.1067445132@sss.pgh.pa.us> <3F9FF092.5849E470@dhs-club.com>
* 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