| От | Tom Lane |
|---|---|
| Тема | Re: Patch: add GiST support for BOX @> POINT queries |
| Дата | |
| Msg-id | 15507.1308319180@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Patch: add GiST support for BOX @> POINT queries (Andrew Tipton <andrew.t.tipton@gmail.com>) |
| Список | pgsql-hackers |
Andrew Tipton <andrew.t.tipton@gmail.com> writes:
> At this point I'm a bit lost -- while pg_amop.h has plenty of examples
> of crosstype comparison operators for btree index methods, there are
> none for GiST. Is GiST somehow a special case in this regard?
AFAIR, GIST doesn't use the concept of a crosstype opclass entry.
It only works with primary opclass entries. You have to set both
amproclefttype and amprocrighttype to the datatype of the indexable
column, regardless of what the other argument actually is.
(I think this implies that you can't have more than one consistent
function per opclass, which means you have to do whatever it is you
have in mind by patching the existing consistent function, not adding
another one alongside it.)
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера