| From: | Venkat Balaji <venkat(dot)balaji(at)verse(dot)in> |
|---|---|
| To: | PGSQL Performance <pgsql-performance(at)postgresql(dot)org> |
| Subject: | : Column Performance in a query |
| Date: | 2011-10-04 10:25:17 |
| Message-ID: | CAFrxt0hs1D0oedyE8vtQH=CD6_K=0X-2k2JrwOZDPb=ub+7OEg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-performance |
Hello Everyone,
Generally when it comes to query performance, I check how the vacuuming and
statistics collection is performed on Tables and Indexes hit by the query.
Apart from the above i check the code logic ( for any bad joins ) and column
statistics as well.
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 ?
I am about to calculate lot of metrics depending on above values. Please
help !
Thanks
Venkat
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Venkat Balaji | 2011-10-04 10:50:34 | Re: : PG9.0 - Checkpoint tuning and pg_stat_bgwriter |
| Previous Message | Anssi Kääriäinen | 2011-10-04 09:39:59 | Window functions and index usage |