pgsql-server: Test HAVING condition before computing targetlist of an - Mailing list pgsql-committers

From tgl@svr1.postgresql.org (Tom Lane)
Subject pgsql-server: Test HAVING condition before computing targetlist of an
Date
Msg-id 20040710183923.BF5A7D1B248@svr1.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Test HAVING condition before computing targetlist of an Aggregate node.
This is required by SQL spec to avoid failures in cases like
  SELECT sum(win)/sum(lose) FROM ... GROUP BY ... HAVING sum(lose) > 0;
AFAICT we have gotten this wrong since day one.  Kudos to Holger Jakobs
for being the first to notice.

Modified Files:
--------------
    pgsql-server/src/backend/executor:
        nodeAgg.c (r1.122 -> r1.123)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/executor/nodeAgg.c.diff?r1=1.122&r2=1.123)

pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pgsql-server: OK, another try at Darwin threads.
Next
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql-server: Test HAVING condition before computing targetlist of an