Re: : Column Performance in a query

From: Ondrej Ivanič <ondrej(dot)ivanic(at)gmail(dot)com>
To: PGSQL Performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: : Column Performance in a query
Date: 2011-10-04 22:26:08
Message-ID: CAM6mie+5VSj2kmk3cNbjb4eY-S9NcX_xH3dCzHHMvHWnH6Sn+w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi,

On 4 October 2011 21:25, Venkat Balaji <venkat(dot)balaji(at)verse(dot)in> wrote:
> I got hold of two catalog tables "pg_stats" and "pg_class".
> Column "avg_width" and "distinct" in pg_stats gets me lot of sensible
> information regarding, column values and size of the column.
> Can someone help me know when the values in these columns are bound to
> change ? Is it only when ANALYZE runs ?

yes, ANALYZE updates underlaying pg_statistic table.

--
Ondrej Ivanic
(ondrej(dot)ivanic(at)gmail(dot)com)

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Greg Smith 2011-10-04 22:32:00 Re: : PG9.0 - Checkpoint tuning and pg_stat_bgwriter
Previous Message Merlin Moncure 2011-10-04 16:10:25 Re: array_except -- Find elements that are not common to both arrays