Re: Is the COMMUTATOR clause required for self commutative operators? - Mailing list pgsql-general

From Tom Lane
Subject Re: Is the COMMUTATOR clause required for self commutative operators?
Date
Msg-id 23686.1070922593@sss.pgh.pa.us
Whole thread Raw
In response to Is the COMMUTATOR clause required for self commutative operators?  (<btober@seaworthysys.com>)
List 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 by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Inheritance and foreign keys
Next
From: Brendan Jurd
Date:
Subject: Re: Inheritance and foreign keys