Re: determining which table is being vacuumed by autovacuum - Mailing list pgsql-admin

From Tom Lane
Subject Re: determining which table is being vacuumed by autovacuum
Date
Msg-id 16624.1187842205@sss.pgh.pa.us
Whole thread Raw
In response to determining which table is being vacuumed by autovacuum  (Kevin Kempter <kevin@kevinkempterllc.com>)
Responses Re: determining which table is being vacuumed by autovacuum (SOLVED)  (Kevin Kempter <kevin@kevinkempterllc.com>)
List pgsql-admin
Kevin Kempter <kevin@kevinkempterllc.com> writes:
> Then I ran this:

> postgres=# select relation from pg_locks where pid = 9902;
>  relation
> -----------
>   82097999
>  143763216
>  143763215
>  143763193
>  143763193
>  143763217
> (7 rows)

> However none of these seem to have a corresponding pg_class oid, see
> the below queries:

This most likely means that the vacuum is happening in a different
database than you are looking in.  Did you check
pg_stat_activity.datname?

            regards, tom lane

pgsql-admin by date:

Previous
From: "Tena Sakai"
Date:
Subject: Re: tar, but not gnu tar
Next
From: Bruce Momjian
Date:
Subject: Re: tar, but not gnu tar