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 1pG19U-0000hA-TB for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Jan 2023 17:14:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pG19S-000190-Rp for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Jan 2023 17:14:06 +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 1pG19S-00018r-Ie for pgsql-hackers@lists.postgresql.org; Thu, 12 Jan 2023 17:14:06 +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 1pG19P-0006Uc-Hn for pgsql-hackers@postgresql.org; Thu, 12 Jan 2023 17:14:05 +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 30CHE0bg1097505; Thu, 12 Jan 2023 12:14:00 -0500 From: Tom Lane To: Isaac Morland cc: Gurjeet Singh , Matthias van de Meent , Postgres Hackers Subject: Re: Named Operators In-reply-to: References: Comments: In-reply-to Isaac Morland message dated "Thu, 12 Jan 2023 12:02:37 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1097503.1673543640.1@sss.pgh.pa.us> Date: Thu, 12 Jan 2023 12:14:00 -0500 Message-ID: <1097504.1673543640@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Isaac Morland writes: > What about backticks (`)? They are allowed as operator characters but do > not otherwise appear in the lexical syntax as far as I can tell: > https://www.postgresql.org/docs/current/sql-syntax-lexical.html Since they're already allowed as operator characters, you can't use them for this purpose without breaking existing use-cases. Even if they were completely unused, I'd be pretty hesitant to adopt them for this purpose because of the potential confusion for users coming from mysql. Pretty much the only available syntax space is curly braces, and I don't really want to give those up for this either. (One has to assume that the SQL committee has their eyes on those too.) regards, tom lane