Re: 8.1.8 autovacuum missing databases - Mailing list pgsql-admin

From Ian Westmacott
Subject Re: 8.1.8 autovacuum missing databases
Date
Msg-id 1209574908.22509.6.camel@vega.intellivid.com
Whole thread Raw
In response to Re: 8.1.8 autovacuum missing databases  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: 8.1.8 autovacuum missing databases
List pgsql-admin
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



pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: 8.1.8 autovacuum missing databases
Next
From: Tom Lane
Date:
Subject: Re: 8.1.8 autovacuum missing databases