Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 679DB632CC3 for ; Thu, 8 Jul 2010 11:31:51 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 15748-01 for ; Thu, 8 Jul 2010 14:31:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id D0FE363288E for ; Thu, 8 Jul 2010 11:31:43 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o68EVfLs024642; Thu, 8 Jul 2010 10:31:41 -0400 (EDT) To: Marc Cousin cc: pgsql-docs@postgresql.org Subject: Re: =?iso-8859-1?q?CREATE=A0OPERATOR_and?= precedence In-reply-to: <201007081628.30860.cousinmarc@gmail.com> References: <201007081628.30860.cousinmarc@gmail.com> Comments: In-reply-to Marc Cousin message dated "Thu, 08 Jul 2010 16:28:30 +0200" Date: Thu, 08 Jul 2010 10:31:41 -0400 Message-ID: <24641.1278599501@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/66 X-Sequence-Number: 5722 Marc Cousin 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