Re: Question about explain of index scan

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Question about explain of index scan
Дата
Msg-id 14801.1125676368@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Question about explain of index scan  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> On Fri, Sep 02, 2005 at 11:03:24AM -0400, Tom Lane wrote:
>> I once started to make a btree opclass for XID, and stopped when it
>> occurred to me that XID comparison doesn't obey the transitive law.

> Not having it does affect the planner somehow, right?
> Maybe we could have the opclass but somehow dictate that making indexes
> with it is verboten.

The reason it affects the planner is that the planner assumes that
operators found in a btree opclass obey the normal laws of comparison.
Such an opclass would certainly break predtest.c for instance, as it
uses the assumption of transitivity directly.

(In any case Hannu's problem seems to be unrelated to the datatype,
see followups.)
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Question about explain of index scan
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Proof of concept COLLATE support with patch