From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Vik Fearing <vik(at)postgresfriends(dot)org>, Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: factorial function/phase out postfix operators? |
Date: | 2020-05-19 18:03:21 |
Message-ID: | CA+TgmoZL2jAmSfQZC2PptWKVQTJSMZkngpgVOXpFFfK9HMuq+g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, May 19, 2020 at 11:32 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Before we go much further on this, we should have some proof
> that there's actually material benefit to be gained. I spent some
> time just now trying to relax the AS restriction by ripping out
> postfix ops, and the results were not too promising. Indeed the
> postfix-ops problem goes away, but then you find out that SQL's
> random syntax choices for type names become the stumbling block.
> An example here is that given
>
> SELECT 'foo'::character varying
>
> it's not clear if "varying" is supposed to be part of the type name or a
> column label. It looks to me like we'd have to increase the reserved-ness
> of VARYING, PRECISION, and about half a dozen currently-unreserved
> keywords involved in INTERVAL syntax, including such popular column names
> as "month", "day", and "year".
>
> Plus I got conflicts on WITHIN, GROUP, and FILTER from ordered-set
> aggregate syntax; those are currently unreserved keywords, but they
> can't be allowed as AS-less column labels.
I came to similar conclusions a couple of years ago:
/message-id/CA+TgmoYzPvT7uiHjWgKtyTivHHLNCp0yLavCoipE-LyG3w2wOQ@mail.gmail.com
What I proposed at the time was creating a new category of keywords.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2020-05-19 18:30:08 | Re: factorial function/phase out postfix operators? |
Previous Message | Tomas Vondra | 2020-05-19 17:53:20 | Re: Trouble with hashagg spill I/O pattern and costing |