Re: Stopgap solution for table-size-estimate updatingproblem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Stopgap solution for table-size-estimate updatingproblem
Дата
Msg-id 19138.1101746078@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Stopgap solution for table-size-estimate updatingproblem  ("Zeugswetter Andreas DAZ SD" <ZeugswetterA@spardat.at>)
Список pgsql-hackers
"Zeugswetter Andreas DAZ SD" <ZeugswetterA@spardat.at> writes:
> I think I recall that lseek may have a negative effect on some OS's
> readahead calculations (probably only systems that cannot handle an
> lseek to the next page eighter) ? Do you think we should cache the
> last value to avoid the syscall ?

We really can't, since the point of doing it is to find out whether any
other backends have extended the file since we last looked.  Also, IIRC
seqscan startup does a similar lseek() anyhow, so having the planner do
one will make no difference to the readahead or lack of it in a
subsequent seqscan.
        regards, tom lane


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

Предыдущее
От: "Zeugswetter Andreas DAZ SD"
Дата:
Сообщение: Re: Stopgap solution for table-size-estimate updatingproblem
Следующее
От: Greg Stark
Дата:
Сообщение: Re: bug fix request