| От | Tom Lane |
|---|---|
| Тема | Re: How to make operator class? |
| Дата | |
| Msg-id | 3775.981823086@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | How to make operator class? ("Kim Yunhan" <spbear@hanmail.net>) |
| Список | pgsql-sql |
"Kim Yunhan" <spbear@hanmail.net> writes: > then, how to make operator class? See the Programmer's Guide, particularly http://www.postgresql.org/devel-corner/docs/postgres/xindex.htm If this is a followup to your previous question about making a reverse-order index, you'll need to start by making a support function that delivers the reverse (negative) of what the existing btree comparison function for the datatype does (see btint4cmp and friends). The remaining operators to comprise the opclass are the same ones that exist already, you just need to swap their positions (use '<' for '>' etc). Good luck! regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера