Re: Poll: are people okay with function/operator table redesign?

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: Robert Haas <robertmhaas(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Steven Pousty <steve(dot)pousty(at)gmail(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Isaac Morland <isaac(dot)morland(at)gmail(dot)com>, Pierre Giraud <pierre(dot)giraud(at)dalibo(dot)com>, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Poll: are people okay with function/operator table redesign?
Date: 2020-04-17 23:40:25
Message-ID: CAKFQuwaF1gAwr890ph0W6hj9cJOENo9Fqw8EO8QT6EQYq7E9ZQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Apr 17, 2020 at 4:17 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> "David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> writes:
> > On Fri, Apr 17, 2020 at 4:04 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> >> Especially not for unary operators, where
> >> ALTER OPERATOR would have us write "- (NONE, integer)".
>
> > I'd drop the parens for unary and just write "- integer"
>
> We do have some postfix operators still ... although it looks like
> there's only one in core. In any case, the signature line is *the*
> thing that is supposed to specify what the syntax is, so I'm not
> too pleased with using an ambiguous notation for it.
>

Neither:

- (NONE, integer)

nor

! (integer, NONE)

seem bad, and do make very obvious how they are different.

The left margin scanning ability for the symbol (hey, I have an expression
here that uses @>, what does that do?) seems worth the bit of novelty
required.

David J.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2020-04-17 23:44:08 Re: where should I stick that backup?
Previous Message Alvaro Herrera 2020-04-17 23:25:11 Re: Support for DATETIMEOFFSET