pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: 谭忠涛 <zhongtao.tan@seaboxdata.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-bugs <pgsql-bugs@lists.postgresql.org>
Subject: Re: 回复:Re: The != and +/- signs are joined together as an operator
Date: Wed, 19 Mar 2025 21:44:43 -0400
Message-ID: <900145.1742435083@sss.pgh.pa.us> (raw)
In-Reply-To: <tencent_66B9FBC77B1326A007855EB1@qq.com>
References: <tencent_66B9FBC77B1326A007855EB1@qq.com>

"=?utf-8?B?6LCt5b+g5rab?=" <zhongtao.tan@seaboxdata.com> writes:
> But "!=" is not the same as "<>"
> 1!=-1,  "!=-" as a whole is treated as an operator, not as an operator "!=" -1, but in 1<>-1, it is treated as "<>" -1 instead of "<>-" as a whole  is treated as an operator
> I think "!=" and "<>" should be treated in the same way

[ shrug... ]  It's not going to happen.  The PG project's position,
as stated in the docs I pointed you to, is that you should write a
space between adjacent operators.  The SQL spec thinks differently,
so we've made sure that you can leave out space between operators
that are defined in the SQL standard, but that's as far as we'll go.
There are too many existing operators, both within PG core and
elsewhere, that would be broken by changing those rules now.

			regards, tom lane





view thread (2+ messages)

Message-ID: <900145.1742435083@sss.pgh.pa.us>
Permalink:  ../900145.1742435083@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/900145.1742435083@sss.pgh.pa.us

 · 

reply

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, zhongtao.tan@seaboxdata.com, david.g.johnston@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: 回复:Re: The != and +/- signs are joined together as an operator
  In-Reply-To: <900145.1742435083@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