Re: where to find out when a table was last analyzed?

From: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
To: Litao Wu <litaowu(at)yahoo(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: where to find out when a table was last analyzed?
Date: 2004-05-26 13:29:06
Message-ID: 1085578147.9127.1933.camel@camel
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Tue, 2004-05-18 at 17:13, Litao Wu wrote:
> All,
>
> Does PG store when a table was last analyzed?
>
> Thanks,
>

no. you can do something like select attname,s.* from pg_statistic s,
pg_attribute a, pg_class c where starelid = c.oid and attrelid = c.oid
and staattnum = attnum and relname = 'mytable' to see the current
statistics on the table, but its not timestamped.

Robert Treat
--
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Vitaly Belman 2004-05-26 14:33:56 Re: PostgreSQL caching
Previous Message Robert Treat 2004-05-26 13:13:58 Re: PostgreSQL caching