Re: Autovacuum keeps vacuuming a table disabled in pg_autovacuum - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Autovacuum keeps vacuuming a table disabled in pg_autovacuum
Date
Msg-id 20070601135825.GC4503@alvh.no-ip.org
Whole thread Raw
In response to Autovacuum keeps vacuuming a table disabled in pg_autovacuum  (Csaba Nagy <nagy@ecircle-ag.com>)
Responses Re: Autovacuum keeps vacuuming a table disabled in pg_autovacuum
List pgsql-general
Csaba Nagy wrote:

> Trouble: the autovacuum daemon is still taking that table and vacuums
> it... how do I know ? So:
>
> select l.pid,c.relname from pg_locks l, pg_class c where l.pid not in
> (select distinct procpid from pg_stat_activity) and l.relation=c.oid and
> c.relkind='r';
>
>   pid  |  relname
> -------+------------
>  16317 | table_name
> (1 row)
>
> postgres@dbname:~$ ps auxww|grep auto
> postgres 16317  0.8  5.8 436008 240656 ?     D    13:26   0:55 postgres:
> autovacuum process   dbname

Probably autovacuum is worried about Xid wraparound so it tries to do a
database-wide vacuum.  In these cases it ignores the pg_autovacuum
disable.

Try reindexing the table; that should make the problem go away.  Also,
update to the latest of the 8.1 branch ASAP.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

Previous
From: Csaba Nagy
Date:
Subject: Re: Autovacuum keeps vacuuming a table disabled in pg_autovacuum
Next
From: Erik Jones
Date:
Subject: Re: shut down one database?