pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Steven Pousty <steve.pousty@gmail.com>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Isaac Morland <isaac.morland@gmail.com>
Cc: Pierre Giraud <pierre.giraud@dalibo.com>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Poll: are people okay with function/operator table redesign?
Date: Fri, 17 Apr 2020 19:04:51 -0400
Message-ID: <6099.1587164691@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwamrEtOp2swR38MWNNYatu_L2YUMjNO=Nw3kKRvMymOCQ@mail.gmail.com>
References: <20200416230304.GA28390@alvherre.pgsql>
	<17560.1587083109@sss.pgh.pa.us>
	<CA+TgmoYP2Lx=e1EbkJo-EVH6nWP8=+Rbu=u3LcnzWvh=VY47zA@mail.gmail.com>
	<20266.1587148695@sss.pgh.pa.us>
	<CAKFQuwamrEtOp2swR38MWNNYatu_L2YUMjNO=Nw3kKRvMymOCQ@mail.gmail.com>

"David G. Johnston" <david.g.johnston@gmail.com> writes:
> 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.

Hmm ... we do use that syntax in some fairly-obscure places like
ALTER OPERATOR, but I'm afraid that novice users would just be
completely befuddled.  Maybe the examples would be enough to clarify,
but I'm not convinced.  Especially not for unary operators, where
ALTER OPERATOR would have us write "- (NONE, integer)".

			regards, tom lane





view thread (113+ messages)  latest in thread

Message-ID: <6099.1587164691@sss.pgh.pa.us>
Permalink:  ../6099.1587164691@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6099.1587164691@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-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, robertmhaas@gmail.com, alvherre@2ndquadrant.com, steve.pousty@gmail.com, pavel.stehule@gmail.com, isaac.morland@gmail.com, pierre.giraud@dalibo.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: Poll: are people okay with function/operator table redesign?
  In-Reply-To: <6099.1587164691@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