Re: [External Sender] Re: A modest proposal vis hierarchical queries: MINUS in the column list

2021-06-10 Thread Mark Zellers
Tom Lane writes: >Andrew Dunstan writes: >> On 6/7/21 6:10 PM, Tom Lane wrote: >>> Note that it's not like SQL hasn't heard of projections before. >>> You can always do "SELECT a, b, d FROM subquery-yielding-a-b-c-d". >>> So the proposed syntax would save a small amount of typing, but >>> it's not

Re: A modest proposal vis hierarchical queries: MINUS in the column list

2021-06-08 Thread Peter Eisentraut
On 08.06.21 04:50, Julien Rouhaud wrote: On Mon, Jun 07, 2021 at 06:10:58PM -0400, Tom Lane wrote: I'm fairly disinclined to do anything about it though, because I'm afraid of the SQL committee standardizing some other syntax for the same idea in future (or maybe worse, commandeering the same k

Re: A modest proposal vis hierarchical queries: MINUS in the column list

2021-06-08 Thread Tom Lane
Andrew Dunstan writes: > On 6/7/21 6:10 PM, Tom Lane wrote: >> Note that it's not like SQL hasn't heard of projections before. >> You can always do "SELECT a, b, d FROM subquery-yielding-a-b-c-d". >> So the proposed syntax would save a small amount of typing, but >> it's not adding any real new fu

Re: A modest proposal vis hierarchical queries: MINUS in the column list

2021-06-08 Thread Andrew Dunstan
On 6/7/21 6:10 PM, Tom Lane wrote: > "David G. Johnston" writes: >> On Mon, Jun 7, 2021 at 1:54 PM Mark Zellers >> wrote: >>> What if you could use the MINUS keyword in the column >>> list of a select statement to remove a column from the result set returned >>> to the client? >> I asked this a

Re: A modest proposal vis hierarchical queries: MINUS in the column list

2021-06-07 Thread Julien Rouhaud
On Mon, Jun 07, 2021 at 06:10:58PM -0400, Tom Lane wrote: > > I'm fairly disinclined to do anything about it though, because I'm > afraid of the SQL committee standardizing some other syntax for the > same idea in future (or maybe worse, commandeering the same keyword > for some other feature). I

Re: A modest proposal vis hierarchical queries: MINUS in the column list

2021-06-07 Thread Tom Lane
"David G. Johnston" writes: > On Mon, Jun 7, 2021 at 1:54 PM Mark Zellers > wrote: >> What if you could use the MINUS keyword in the column >> list of a select statement to remove a column from the result set returned >> to the client? > I asked this a decade ago and got no useful responses. > h

Re: A modest proposal vis hierarchical queries: MINUS in the column list

2021-06-07 Thread David G. Johnston
On Mon, Jun 7, 2021 at 1:54 PM Mark Zellers wrote: > Failing that, I have a modest suggestion that I would like to start a > discussion around. What if you could use the MINUS keyword in the column > list of a select statement to remove a column from the result set returned > to the client? > I