Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tuuVL-00DpPS-9a for pgsql-bugs@arkaria.postgresql.org; Wed, 19 Mar 2025 14:34:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tuuVI-005rc8-JH for pgsql-bugs@arkaria.postgresql.org; Wed, 19 Mar 2025 14:34:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tuuVI-005rc0-Aa for pgsql-bugs@lists.postgresql.org; Wed, 19 Mar 2025 14:34:44 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tuuVG-003iKQ-0e for pgsql-bugs@lists.postgresql.org; Wed, 19 Mar 2025 14:34:43 +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 52JEYd3r701032; Wed, 19 Mar 2025 10:34:39 -0400 From: Tom Lane To: "David G. Johnston" cc: =?UTF-8?B?6LCt5b+g5rab?= , pgsql-bugs Subject: Re: The != and +/- signs are joined together as an operator In-reply-to: References: Comments: In-reply-to "David G. Johnston" message dated "Wed, 19 Mar 2025 07:07:17 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <701030.1742394879.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 19 Mar 2025 10:34:39 -0400 Message-ID: <701031.1742394879@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > On Tuesday, March 18, 2025, =E8=B0=AD=E5=BF=A0=E6=B6=9B wrote: >> select 1 !=3D-1; >> select 1 !=3D+1; > Explain why you think it is a bug. From what I see those are potentiall= y > valid operator names that do not exist so =E2=80=9Coperator not found=E2= =80=9D is the > correct outcome. Our rules for operator names are here: https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX= -OPERATORS regards, tom lane