Re: Poll: are people okay with function/operator table redesign? - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Poll: are people okay with function/operator table redesign?
Date
Msg-id CA+TgmoZrYwfh4bU+OyhvdvHADBay6CcsseA74vtj8gO_mKOmNQ@mail.gmail.com
Whole thread Raw
In response to Re: Poll: are people okay with function/operator table redesign?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: Poll: are people okay with function/operator table redesign?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Fri, Apr 17, 2020 at 6:30 PM David G. Johnston
<david.g.johnston@gmail.com> wrote:
> I feel like writing them as:
>
> + (date, integer) -> date
>
> makes more sense as they are mainly sorted on the operator symbol as opposed to the left operand.

I thought about that, too, but I think the way Tom did it is better.
It's much more natural to see it using the syntax with which it will
actually be invoked.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Eugen Konkov
Date:
Subject: Implementation DISTINCT for window aggregate function: SUM
Next
From: Robert Haas
Date:
Subject: Re: snapshot too old issues, first around wraparound and then more.