Re: when a table was last vacuumed

From: Glyn Astill <glynastill(at)yahoo(dot)co(dot)uk>
To: pgsql-general General <pgsql-general(at)postgresql(dot)org>, AI Rumman <rummandba(at)gmail(dot)com>
Subject: Re: when a table was last vacuumed
Date: 2010-02-10 10:30:20
Message-ID: 690099.26246.qm@web23601.mail.ird.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

--- On Wed, 10/2/10, AI Rumman <rummandba(at)gmail(dot)com> wrote:

> If it possible to find out when a table
> was last vacuumed?

Try:

select pg_stat_get_last_vacuum_time(oid) from "pg_catalog".pg_class where relname = 'tablename';

select pg_stat_get_last_autovacuum_time(oid) from "pg_catalog".pg_class where relname = 'tablename';

In response to

Browse pgsql-general by date

  From Date Subject
Next Message MOLINA BRAVO FELIPE DE JESUS 2010-02-10 10:33:17 Re: xpath
Previous Message AI Rumman 2010-02-10 10:23:27 Re: when a table was last vacuumed