Re: SeqScan costs

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SeqScan costs
Дата
Msg-id 23950.1218570402@sss.pgh.pa.us
обсуждение исходный текст
Ответ на SeqScan costs  (Simon Riggs <simon@2ndquadrant.com>)
Ответы Re: SeqScan costs  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-hackers
Simon Riggs <simon@2ndquadrant.com> writes:
> Proposal: Make the first block of a seq scan cost random_page_cost, then
> after that every additional block costs seq_page_cost.

This is only going to matter for a table of 1 block (or at least very
few blocks), and for such a table it's highly likely that it's in RAM
anyway.  So I'm unconvinced that the proposed change represents a
better model of reality.

Perhaps more to the point, you haven't provided any actual evidence
that this is a better approach.  I'm disinclined to tinker with the
fundamental cost models on the basis of handwaving.
        regards, tom lane


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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: [DOCS] [ADMIN] shared_buffers and shmmax
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Transaction-controlled robustness for replication