From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marc Cousin <cousinmarc@gmail.com>
Cc: pgsql-docs@postgresql.org
Subject: Re: CREATE OPERATOR and precedence
Date: Thu, 08 Jul 2010 10:31:41 -0400
Message-ID: <24641.1278599501@sss.pgh.pa.us> (raw)
In-Reply-To: <201007081628.30860.cousinmarc@gmail.com>
References: <201007081628.30860.cousinmarc@gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: tgl@sss.pgh.pa.us, cousinmarc@gmail.com
Subject: Re: CREATE OPERATOR and precedence
In-Reply-To: <24641.1278599501@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox