random_page_cost configuration parameter

Поиск
Список
Период
Сортировка
Искать
От
Mathias Kunter
Тема
random_page_cost configuration parameter
Дата
Msg-id
9271c072-e91d-4dc5-c0a9-197f47291671@gmail.com
Список
Дерево обсуждения
random_page_cost configuration parameter Mathias Kunter <mathiaskunter@gmail.com>
Re: random_page_cost configuration parameter Tom Lane <tgl@sss.pgh.pa.us>
Re: random_page_cost configuration parameter Mathias Kunter <mathiaskunter@gmail.com>
Re: random_page_cost configuration parameter Bruce Momjian <bruce@momjian.us>
Hello all,

the documentation of the random_page_cost configuration parameter says:

> Although the system will let you set random_page_cost to less than
> seq_page_cost, it is not physically sensible to do so.

Source: 
https://www.postgresql.org/docs/current/runtime-config-query.html#RUNTIME-CONFIG-QUERY-CONSTANTS

However, I don't think this statement is true. Consider the situation 
where the randomly fetched pages are mostly (or even entirely) cached in 
RAM, but where the sequentially fetched pages must be mostly read from 
disk. An example for such a scenario is a database system which uses 
RAM-cached indices.

Such a database system would be best modeled with random_page_cost < 
seq_page_cost. Please correct me if I'm wrong.

Best regards
Mathias Kunter


В списке pgsql-docs по дате отправления
От: PG Doc comments form
Дата:
От: Tom Lane
Дата:
FAQ