Re: when a table was last vacuumed - Mailing list pgsql-general

From Glyn Astill
Subject Re: when a table was last vacuumed
Date
Msg-id 690099.26246.qm@web23601.mail.ird.yahoo.com
Whole thread Raw
In response to when a table was last vacuumed  (AI Rumman <rummandba@gmail.com>)
List pgsql-general
--- On Wed, 10/2/10, AI Rumman <rummandba@gmail.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';




pgsql-general by date:

Previous
From: AI Rumman
Date:
Subject: Re: when a table was last vacuumed
Next
From: Yeb Havinga
Date:
Subject: Re: Extending SQL in C using VARIABLE length type