gin index operator class functions in sql?

Поиск
Список
Период
Сортировка
От Andrew Geery
Тема gin index operator class functions in sql?
Дата
Msg-id CANdn4xLsLFzgVAUGqCYpbEk38WCLE20AtAz-tVsj7UyNLe+yQQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: gin index operator class functions in sql?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
For a custom type to be used in a btree index, it is possible to create a function in SQL (as opposed to C) that is used in the create operator class statement to specify how equality is defined.  A good example of this is presented inhttp://www.cybertec.at/2013/11/operator-classes-explained/.

Is it possible to define functions in SQL (as opposed to C) to do the same thing -- create an operator class -- for a gin index?  According to the documentation, there are four functions that would need to be defined: overlap, contains, is contained by and equal [1].  If so, what would the SQL function signature be?

Thanks
Andrew

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Array value from table as parameter
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 9.5: pg_stat_statement and pgbench execution time discrepancies