From: Ian Westmacott <ianw@intellivid.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@commandprompt.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: 8.1.8 autovacuum missing databases
Date: Wed, 30 Apr 2008 13:01:48 -0400
Message-ID: <1209574908.22509.6.camel@vega.intellivid.com> (raw)
In-Reply-To: <19778.1209572869@sss.pgh.pa.us>
References: <1209499373.18622.47.camel@vega.intellivid.com>
<20080429203335.GK5652@alvh.no-ip.org>
<1209503103.18622.68.camel@vega.intellivid.com>
<20080429211244.GM5652@alvh.no-ip.org>
<1209560546.5209.12.camel@vega.intellivid.com>
<20080430161942.GC21286@alvh.no-ip.org>
<19778.1209572869@sss.pgh.pa.us>
On Wed, 2008-04-30 at 12:27 -0400, Tom Lane wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > I still think that the autovac is dying before completing the task. Did
> > you investigate whether there are "ERROR" messages coming from
> > autovacuum? No PG crashes would happen.
There are no ERROR messages at all. Sample log snippet:
2008-04-30 12:03:36 EDT LOG: autovacuum: processing database
"template1"
2008-04-30 12:04:36 EDT LOG: autovacuum: processing database
"itvtrackdatapos"
2008-04-30 12:05:36 EDT LOG: autovacuum: processing database
"template1"
2008-04-30 12:06:36 EDT LOG: autovacuum: processing database
"itvtrackdatapos"
2008-04-30 12:07:36 EDT LOG: autovacuum: processing database
"template1"
2008-04-30 12:08:36 EDT LOG: autovacuum: processing database
"itvtrackdatapos"
2008-04-30 12:09:36 EDT LOG: autovacuum: processing database
"template1"
2008-04-30 12:10:36 EDT LOG: autovacuum: processing database
"itvtrackdatapos"
> I'm noticing though that the 8.1 logic pays attention to both
> datvacuumxid and datfrozenxid. Could we see the age() of both of
> those columns for all the databases.
The are all identical:
itvtrackdata=> select datname,age(datfrozenxid),age(datvacuumxid) from
pg_database;
datname | age | age
------------------+-----------+-----------
postgres | 295995059 | 295995059
itvtrackdata | 295995059 | 295995059
itvtrackdatauser | 295995059 | 295995059
itvtrackdatapos | 295995059 | 295995059
template1 | 295995059 | 295995059
template0 | 295995059 | 295995059
(6 rows)
itvtrackdata=>
--Ian
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: ianw@intellivid.com, tgl@sss.pgh.pa.us, alvherre@commandprompt.com
Subject: Re: 8.1.8 autovacuum missing databases
In-Reply-To: <1209574908.22509.6.camel@vega.intellivid.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