Re: determining which table is being vacuumed by autovacuum

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kevin Kempter <kevin(at)kevinkempterllc(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: determining which table is being vacuumed by autovacuum
Date: 2007-08-23 04:10:05
Message-ID: 16624.1187842205@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Kevin Kempter <kevin(at)kevinkempterllc(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Bruce Momjian 2007-08-23 04:22:21 Re: tar, but not gnu tar
Previous Message Tena Sakai 2007-08-23 02:47:26 Re: tar, but not gnu tar