Re: 8.1.8 autovacuum missing databases

From: Ian Westmacott <ianw(at)intellivid(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: 8.1.8 autovacuum missing databases
Date: 2008-04-30 17:01:48
Message-ID: 1209574908.22509.6.camel@vega.intellivid.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wed, 2008-04-30 at 12:27 -0400, Tom Lane wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2008-04-30 17:07:13 Re: 8.1.8 autovacuum missing databases
Previous Message Tom Lane 2008-04-30 16:27:49 Re: 8.1.8 autovacuum missing databases