Re: Named Operators - Mailing list pgsql-hackers

From David G. Johnston
Subject Re: Named Operators
Date
Msg-id CAKFQuwZ=UbohWky6if=GWq8eS4c+yK8M++=3ECa5gnPSM7EKfA@mail.gmail.com
Whole thread Raw
In response to Re: Named Operators  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Thu, Jan 12, 2023 at 10:14 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Isaac Morland <isaac.morland@gmail.com> 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.


IIUC, specifically the fact that an operator is defined to start with one of those symbols and end at the first non-symbol.  We can't change the allowed set of non-symbols at this point, without defining something else to denote the start of an operator.

David J.

pgsql-hackers by date:

Previous
From: Joe Conway
Date:
Subject: Re: drop postmaster symlink
Next
From: Nathan Bossart
Date:
Subject: Re: PL/Python: Fix return in the middle of PG_TRY() block.