Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nXcZM-0000Vc-HQ for pgsql-sql@arkaria.postgresql.org; Fri, 25 Mar 2022 05:33:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nXcZL-000611-4K for pgsql-sql@arkaria.postgresql.org; Fri, 25 Mar 2022 05:33:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nXcZK-00060r-S0 for pgsql-sql@lists.postgresql.org; Fri, 25 Mar 2022 05:33:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nXcZI-00076j-PW for pgsql-sql@lists.postgresql.org; Fri, 25 Mar 2022 05:33:02 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 22P5Ww833193284; Fri, 25 Mar 2022 01:32:58 -0400 From: Tom Lane To: Jian He cc: pgsql-sql Subject: Re: the order of operator computation In-reply-to: References: Comments: In-reply-to Jian He message dated "Fri, 25 Mar 2022 10:16:17 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3193282.1648186378.1@sss.pgh.pa.us> Date: Fri, 25 Mar 2022 01:32:58 -0400 Message-ID: <3193283.1648186378@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jian He writes: > Is there some way to achieve: > *Operator LEFTARG RIGHTARG * Maybe with some hack-and-slash in gram.y, but it's not something we'd be interested in supporting. What will you do to disambiguate prefix/infix (1 vs 2 arg) operators? regards, tom lane