Re: Update obsolete text in indexam.sgml

Поиск
Список
Период
Сортировка
От Etsuro Fujita
Тема Re: Update obsolete text in indexam.sgml
Дата
Msg-id 001b01cdbc90$1ce514a0$56af3de0$@lab.ntt.co.jp
обсуждение исходный текст
Ответ на Re: Update obsolete text in indexam.sgml  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]

> "Etsuro Fujita" <fujita.etsuro@lab.ntt.co.jp> writes:
> > Agreed.  However, I am concerned about the next comment in the current code:
>
> > /*
> >  * Our generic assumption is that the index pages will be read
> >  * sequentially, so they cost seq_page_cost each, not random_page_cost.
> >  * ...
>
> > I think this assumption is completely wrong, which has given me a motivation
> to
> > propose a patch, though I am missing something.
>
> Mph.  It's pretty hard to argue that it's wrong without considering a
> specific index implementation, which in practice would have a ton of
> other details that need to be accounted for here.  I don't have a strong
> objection to changing the sample code to use random_page_cost instead,
> but I doubt it will help anybody one way or another.

To avoid creating unnecessary confusion among Index AM developers, I think it
would be better that the docs' sample code is consistent with the actual code in
selfuncs.c, which the docs referred to at the end of the page.  No?

Thanks,

Best regards,
Etsuro Fujita





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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Update obsolete text in indexam.sgml
Следующее
От: 花田 茂
Дата:
Сообщение: Re: FDW for PostgreSQL