Re: CREATE OPERATOR and precedence - Mailing list pgsql-docs

From Tom Lane
Subject Re: CREATE OPERATOR and precedence
Date
Msg-id 24641.1278599501@sss.pgh.pa.us
Whole thread Raw
In response to CREATE OPERATOR and precedence  (Marc Cousin <cousinmarc@gmail.com>)
Responses Re: CREATE OPERATOR and precedence  (Marc Cousin <cousinmarc@gmail.com>)
List pgsql-docs
Marc Cousin <cousinmarc@gmail.com> writes:
> I just got caught by a precedence problem with CREATE OPERATOR.

> Obviously, it was mostly my fault (I didn't think of the precedence of my
> operator at all), but I didn't find anything in the CREATE OPERATOR
> documentation about it either.

CREATE OPERATOR has nothing to say on the subject because operator
precedences are hard-wired into the parser and can't be changed by
CREATE OPERATOR.  See

http://www.postgresql.org/docs/8.4/static/sql-syntax-lexical.html#SQL-PRECEDENCE

            regards, tom lane


pgsql-docs by date:

Previous
From: Marc Cousin
Date:
Subject: CREATE OPERATOR and precedence
Next
From: Daniele Varrazzo
Date:
Subject: Please provide stable target anchors