From: Jim Nasby <decibel@decibel.org>
To: Steven Flatt <steven.flatt@gmail.com>
Cc: Bill Moran <wmoran@collaborativefusion.com>
Cc: Francisco Reyes <lists@stringsutils.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Database-wide VACUUM ANALYZE
Date: Mon, 25 Jun 2007 19:00:20 -0500
Message-ID: <FFD6DF28-B30D-47D0-BFB5-6485B32BF8AC@decibel.org> (raw)
In-Reply-To: <357fa7590706211337i55e9b20nea5a1bd4c5e41268@mail.gmail.com>
References: <357fa7590706211009w2ef6071fn83c5759db6be1e80@mail.gmail.com>
<cone.1182452313.269532.11564.5001@35st.simplicato.com>
<357fa7590706211236y2856ed96q5394b9302b9a528f@mail.gmail.com>
<20070621160732.58497e2b.wmoran@collaborativefusion.com>
<357fa7590706211337i55e9b20nea5a1bd4c5e41268@mail.gmail.com>
On Jun 21, 2007, at 3:37 PM, Steven Flatt wrote:
> Thanks everyone. It appears that we had hacked the 502.pgsql
> script for our 8.1 build to disable the daily vacuum. I was not
> aware of this when building and upgrading to 8.2.
Much better to change stuff in a config file than to hack installed
scripts, for this very reason. :)
> So it looks like for the past two weeks, that 36 hour db-wide
> vacuum has been running every 24 hours. Good for it for being
> reasonably non-intrusive and going unnoticed until now. :)
>
> Although apparently not related anymore, I still think it was a
> good move to change autovacuum_freeze_max_age from 200 million to 2
> billion.
If you set that to 2B, that means you're 2^31-"2 billion"-1000000
transactions away from a shutdown when autovac finally gets around to
trying to run a wraparound vacuum on a table. If you have any number
of large tables, that could be a big problem, as autovac could get
tied up on a large table for a long enough period that the table
needing to be frozen doesn't get frozen in time.
I suspect 1B is a much better setting. I probably wouldn't go past 1.5B.
--
Jim Nasby jim@nasby.net
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)
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-performance@postgresql.org
Cc: decibel@decibel.org, steven.flatt@gmail.com, wmoran@collaborativefusion.com, lists@stringsutils.com
Subject: Re: Database-wide VACUUM ANALYZE
In-Reply-To: <FFD6DF28-B30D-47D0-BFB5-6485B32BF8AC@decibel.org>
References: <357fa7590706211009w2ef6071fn83c5759db6be1e80@mail.gmail.com> <cone.1182452313.269532.11564.5001@35st.simplicato.com> <357fa7590706211236y2856ed96q5394b9302b9a528f@mail.gmail.com> <20070621160732.58497e2b.wmoran@collaborativefusion.com> <357fa7590706211337i55e9b20nea5a1bd4c5e41268@mail.gmail.com> <FFD6DF28-B30D-47D0-BFB5-6485B32BF8AC@decibel.org>
* 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