| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | josh(at)agliodbs(dot)com, pgsql-hackers(at)postgresql(dot)org, Neil Conway <neilc(at)samurai(dot)com> |
| Subject: | Re: raising the default default_statistics_target |
| Date: | 2004-03-08 19:22:36 |
| Message-ID: | 200403081922.i28JMaR18689@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Do all the columns have to have the same number of statistics buckets?
>
> They do not, but the effort spent by ANALYZE is proportional to the
> largest stats target among all the columns of the table.
Could we use previous stats to determine how many buckets to use when
running ANALYZE. Also, if columns have a different number of buckets,
does that mean that we don't have the same per-query overhead for a
larger stats target?
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2004-03-08 19:25:06 | Re: COMMENT ON [GROUP/USER] |
| Previous Message | Tom Lane | 2004-03-08 19:19:48 | Re: raising the default default_statistics_target |