Re: Is the COMMUTATOR clause required for self commutative operators?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Is the COMMUTATOR clause required for self commutative operators?
Дата
Msg-id 23686.1070922593@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Is the COMMUTATOR clause required for self commutative operators?  (<btober@seaworthysys.com>)
Список pgsql-general
<btober@seaworthysys.com> writes:
> Is omitting the COMMUTATOR option a problem at all in case of
> self-commutative operators?

At the moment it only really matters for operators that are used in
top-level WHERE clauses --- which lets out anything that doesn't return
boolean.  But I'd say that as a matter of style, if the operator is
self-commutative you should mark it so.  Some day the system might
pay attention.

            regards, tom lane

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Inheritance and foreign keys
Следующее
От: Brendan Jurd
Дата:
Сообщение: Re: Inheritance and foreign keys