Re: How to make operator class?

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: "Albert REINER"
Дата:
Сообщение: Re: fetching the id of a new row
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: How to make operator class?