Re: again on index usage

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: again on index usage
Дата
Msg-id 29731.1010770960@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: again on index usage  (Daniel Kalchev <daniel@digsys.bg>)
Список pgsql-hackers
Daniel Kalchev <daniel@digsys.bg> writes:
>>> I don't think I'd go as far as to lower random_page_cost to 1.0, but
>>> certainly there's a case for using an intermediate value.

> The question is: how does one find the proper value? That is, is it
> possible to design planner benchmarking utility to aid in tuning
> Postgres?

The trouble is that getting trustworthy numbers requires huge test
cases, because you have to swamp out the effects of the kernel's own
buffer caching.  I spent about a week running 24-hour-constant-disk-
banging experiments when I came up with the 4.0 number we use now,
and even then I didn't feel that I had a really solid range of test
cases to back it up.

My advice to you is just to drop it to 2.0 and see if you like the plans
you get any better.
        regards, tom lane


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

Предыдущее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: again on index usage
Следующее
От: Holger Krug
Дата:
Сообщение: Re: Problems with simple_heap_update and Form_pg_relcheck