Re: RFC: Temporal Extensions for PostgreSQL

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: RFC: Temporal Extensions for PostgreSQL
Дата
Msg-id 20070218200216.GC6828@svana.org
обсуждение исходный текст
Ответ на Re: RFC: Temporal Extensions for PostgreSQL  (Hannu Krosing <hannu@skype.net>)
Список pgsql-hackers
On Sun, Feb 18, 2007 at 08:14:00PM +0200, Hannu Krosing wrote:
> > but I can promise you you can't make it work with btree.
>
> Sorry to hear that. btree seemed like the best candidate for doing it.

The problem with btree is that it's designed to work with a compare
function which compares two datums and returns greater than, equal to
or less than. You can't build such an operator for intervals, so
there's a problem.

However, if you decree that a zero return value mean "collision for the
purposes of a unique index" then you could probably make it work.
*However* using it for lookups probably won't work very well then...

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

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

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: Plan invalidation design
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Plan invalidation design