Re: Ranges for well-ordered types

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Ranges for well-ordered types
Дата
Msg-id 690.1149956993@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Ranges for well-ordered types  ("Ian Caulfield" <ian.caulfield@gmail.com>)
Список pgsql-hackers
"Ian Caulfield" <ian.caulfield@gmail.com> writes:
> I've done similar date range things by creating a composite type consisting
> of the lower and upper bounds, and then implementing a btree opclass where
> the comparator returns 0 if two ranges overlap - this allows a current btree
> index to enforce non-overlapping ranges, and allows indexed lookup of which
> range contains a particular value.

And how hard did you test this?  Non-transitive "equality" is certain to
confuse btree, leading to wrong answers.
        regards, tom lane


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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: How to avoid transaction ID wrap
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Latest timezone data in 8.1.4