Re: WIP: generalized index constraints

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: WIP: generalized index constraints
Дата
Msg-id 1253035708.24770.88.camel@jdavis
обсуждение исходный текст
Ответ на Re: WIP: generalized index constraints  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: WIP: generalized index constraints  (Robert Haas <robertmhaas@gmail.com>)
Re: WIP: generalized index constraints  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: WIP: generalized index constraints  (tomas@tuxteam.de)
Список pgsql-hackers
On Tue, 2009-09-15 at 13:16 -0400, Robert Haas wrote:
> Uhh.... so what happens if I create an index constraint using the
> +(integer, integer) operator?

You can use any operator that has an index search strategy. Overlaps is
probably the most useful, but you could imagine other operators, like a
bi-directional containment operator (either LHS is contained in RHS, or
vice-versa).

You can also get creative and have a "similarity" operator that
determines whether two tuples are "too similar". As long as it is
symmetric, the feature will work.

Or just use wrap random() in an operator and see what happens ;)

Regards,Jeff Davis



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

Предыдущее
От: "David E. Wheeler"
Дата:
Сообщение: Re: Timestamp to time_t
Следующее
От: Robert Haas
Дата:
Сообщение: Re: WIP: generalized index constraints