Re: Named Operators

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Isaac Morland <isaac(dot)morland(at)gmail(dot)com>, Gurjeet Singh <gurjeet(at)singh(dot)im>, Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>, Postgres Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Named Operators
Date: 2023-01-12 18:37:48
Message-ID: CAKFQuwZ=UbohWky6if=GWq8eS4c+yK8M++=3ECa5gnPSM7EKfA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jan 12, 2023 at 10:14 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Isaac Morland <isaac(dot)morland(at)gmail(dot)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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2023-01-12 18:44:33 Re: PL/Python: Fix return in the middle of PG_TRY() block.
Previous Message Joe Conway 2023-01-12 18:35:09 Re: drop postmaster symlink