Re: pgsql: Make the behavior of HAVING without GROUP

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Tom Lane <tgl(at)svr1(dot)postgresql(dot)org>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Make the behavior of HAVING without GROUP
Date: 2005-03-11 01:28:17
Message-ID: 4230F431.6040100@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

I wonder how much back-compatibility and dump reloading problems this
might cause? :(

Tom Lane wrote:
> Log Message:
> -----------
> Make the behavior of HAVING without GROUP BY conform to the SQL spec.
> Formerly, if such a clause contained no aggregate functions we mistakenly
> treated it as equivalent to WHERE. Per spec it must cause the query to
> be treated as a grouped query of a single group, the same as appearance
> of aggregate functions would do. Also, the HAVING filter must execute
> after aggregate function computation even if it itself contains no
> aggregate functions.

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2005-03-11 03:45:25 pgsql: Add: > * Fix cross-compiling of time zone database via 'zic'
Previous Message Tom Lane 2005-03-10 23:21:26 pgsql: Make the behavior of HAVING without GROUP BY conform to the SQL