Re: Improper const-evaluation of HAVING with grouping sets and subquery pullup

From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Pg Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Improper const-evaluation of HAVING with grouping sets and subquery pullup
Date: 2017-10-17 09:50:24
Message-ID: 87po9mjec0.fsf@news-spur.riddles.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

>>>>> "Andrew" == Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk> writes:

Andrew> To my knowledge this is the correct result. (Though neither
Andrew> version of the query is legal per the SQL spec; allowing
Andrew> expressions and aliases in GROUP BY are nonstandard
Andrew> extensions.)

And neither Oracle nor MSSQL (at least the versions available on
sqlfiddle) allow either query, so there's nothing I can compare against.

--
Andrew (irc:RhodiumToad)

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message boatcoder 2017-10-17 14:18:14 BUG #14859: Config file parsing is allergic to spaces on last line of file
Previous Message Andrew Gierth 2017-10-17 09:16:58 Re: Improper const-evaluation of HAVING with grouping sets and subquery pullup