Re: [GENERAL] how to get accurate values in pg_statistic

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: [GENERAL] how to get accurate values in pg_statistic
Дата
Msg-id 87fzj86vdi.fsf@stark.dyndns.tv
обсуждение исходный текст
Ответ на Re: [GENERAL] how to get accurate values in pg_statistic  (Mary Edie Meredith <maryedie@osdl.org>)
Ответы Re: [GENERAL] how to get accurate values in pg_statistic  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
Mary Edie Meredith <maryedie@osdl.org> writes:

> We ran additional tests with default_statistics_target set to 1000 (the
> max I believe).  The plans are the same over the different runs, but the
> pg_statistics table has different cost values.  The performance results
> of the runs are consistent (we would expect this with the same plans).
> The resulting performance metrics are similar to the best plans we see
> using the default histogram size (good news).

Hm, would it be possible to do a binary search and find the target at which
you start getting consistent plans? Perhaps the default of 10 is simply way
too small and should be raised?

Obviously this would depend on the data model, but I suspect if your aim is
for the benchmark data to be representative of typical data models, which
scares me into thinking perhaps users are seeing similarly unpredictably
variable performance.

--
greg

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

Предыдущее
От: Pailloncy Jean-Gérard
Дата:
Сообщение: slow plan for min/max
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] how to get accurate values in pg_statistic