From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Scott Marlowe <scott.marlowe@gmail.com>
To: Silvio Brandani <silvio.brandani@tech.sdb.it>
Cc: pgsql-admin@postgresql.org
Subject: Re: PANIC killing vacuum process
Date: Wed, 03 Nov 2010 12:52:54 -0500
Message-ID: <4CD15B26020000250003720C@gw.wicourts.gov> (raw)
In-Reply-To: <AANLkTimbD1=QaH0C+eNJAd7w-Prr4n28qpuOyuRvQ0f2@mail.gmail.com>
References: <4CD1886C.5000503@tech.sdb.it>
<AANLkTimbD1=QaH0C+eNJAd7w-Prr4n28qpuOyuRvQ0f2@mail.gmail.com>
Scott Marlowe <scott.marlowe@gmail.com> wrote:
> Silvio Brandani <silvio.brandani@tech.sdb.it> wrote:
>> we have develop a script to execute the vacuum full on all tables
> Vacuum full is more of a recovery / offline command and is to be
> used sparingly, especially before 9.0.
And before 9.0, most of the situations where you might reasonably
consider VACUUM FULL, you were better off with CLUSTER.
>> very big database , since it is a 24 x 7 available system we have
>> not a timeframe to exec the vacuum full.
>
> Is there a reason you're avoiding autovacuum and tuning it to keep
> up? It's usually the better option.
Even if you have a case for doing database vacuums during off-peak
hours, you should almost certainly use autovacuum with settings at
least as aggressive as the default. At our shop we configure
autovacuum more aggressively than the default, to keep our small,
volatile tables tidy, and run a vacuum of the entire database each
night (which is, by the way, a very different thing than a VACUUM
FULL).
>> PostgreSQL 8.3.1 on x86_64-redhat-linux-gnu
>
> Is there a good reason for avoiding about two years of updates
> (8.3.latest has a lot of bug fixes.)
Yeah, this is important. See this page:
http://www.postgresql.org/support/versioning
Many of those fixes to 8.3 after 8.3.1 were to vacuum or autovacuum.
You can poke around the release notes here:
http://www.postgresql.org/docs/8.3/static/release.html
If problems with autovacuum were what drove you toward VACUUM FULL,
you should update and try autovacuum again. Going from 8.3.1 to
8.3.12 is pretty painless and very safe -- just read the release
notes for details on what types of indexes need to be rebuilt after
the update. (That probably won't affect you, but you should check.)
-Kevin
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: Kevin.Grittner@wicourts.gov, scott.marlowe@gmail.com, silvio.brandani@tech.sdb.it
Subject: Re: PANIC killing vacuum process
In-Reply-To: <4CD15B26020000250003720C@gw.wicourts.gov>
References: <4CD1886C.5000503@tech.sdb.it> <AANLkTimbD1=QaH0C+eNJAd7w-Prr4n28qpuOyuRvQ0f2@mail.gmail.com> <4CD15B26020000250003720C@gw.wicourts.gov>
* 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