Skip site navigation (1) Skip section navigation (2)

Re: Where does data in pg_stat_user_tables come from?

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Where does data in pg_stat_user_tables come from?
Date: 2010-09-14 00:53:51
Message-ID: 4C8EC79F.9080404@agliodbs.com (view raw or flat)
Thread:
Lists: pgsql-performance
> If you select from pg_stat_user_tables, the counters should be
> reasonably close unless your default_statistics_target is way off and
> then pg_class.reltuples would be wrong.

At least in 8.3, running ANALYZE does not update pg_stat_user_tables in
any way.  Does it in later versions?

-- 
                                  -- Josh Berkus
                                     PostgreSQL Experts Inc.
                                     http://www.pgexperts.com

In response to

Responses

pgsql-performance by date

Next:From: Tom LaneDate: 2010-09-14 01:40:47
Subject: Re: Where does data in pg_stat_user_tables come from?
Previous:From: Joshua D. DrakeDate: 2010-09-14 00:12:08
Subject: Re: Where does data in pg_stat_user_tables come from?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group