Re: Query optimizer 8.0.1 (and 8.0)

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Query optimizer 8.0.1 (and 8.0)
Дата
Msg-id 200502092335.j19NZPd26392@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Query optimizer 8.0.1 (and 8.0)  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-hackers
Josh Berkus wrote:
> Mark, Stephen, etc:
> 
> > > I can see your point, however I wonder if the issue is that the default
> > > stats settings of '10' (3000 rows, 10 histogram buckets) is too low, and
> > > maybe we should consider making a higher value (say '100') the default.
> >
> > Personally, I think that'd be reasonable.
> 
> I don't really think that we want to increase sampling for *all* columns.   
> Each column that doesn't get queried but has increased stats adds the size of 
> the pg_stats table and the amount of vacuuming it needs, decreasing 
> performance of stats lookups.  Especially when very large text and BYTEA 
> columns are involved.
> 
> Neil and I talked about setting a seperate GUC, default_index_stats_target, 
> for 8.0 that would dramatically increase the stats sampling for indexed 
> columns only (say, to 250).    Unfortunately, I was unable to come up with a 
> good test case for setting this value.

Is default_index_stats_target a TODO item?  Seems we already have cases
where our bucket size isn't large enough and this would help.


--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: libpq API incompatibility between 7.4 and 8.0
Следующее
От: pgsql@mohawksoft.com
Дата:
Сообщение: Re: Query optimizer 8.0.1 (and 8.0)