Re: CREATE OPERATOR and precedence

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Marc Cousin <cousinmarc(at)gmail(dot)com>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: CREATE OPERATOR and precedence
Date: 2010-07-08 14:31:41
Message-ID: 24641.1278599501@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Marc Cousin <cousinmarc(at)gmail(dot)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

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Daniele Varrazzo 2010-07-08 14:54:54 Please provide stable target anchors
Previous Message Marc Cousin 2010-07-08 14:28:30 CREATE OPERATOR and precedence