Re: BUG #5025: Aggregate function with subquery in 8.3 and 8.4.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: "Sheng Y(dot) Cheng" <scheng(at)adconion(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5025: Aggregate function with subquery in 8.3 and 8.4.
Date: 2009-09-01 15:06:35
Message-ID: 15375.1251817595@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> writes:
> I can see two possible interpretations for this:

> 1. The subquery pull-up code is broken, the transformation of a
> whole-row reference to ROW(...) is not valid.

I think the problem is probably that we need a PlaceHolderVar wrapper
around the ROW() constructor.

> 2. The semantics of STRICT with row arguments is broken. It should be
> made consistent with IS NULL.

Well, that's a different argument. The immediate problem is that this
case doesn't behave consistently with pre-8.4 behavior, which was not
an intended change --- so I think we'd better make it work like before.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Joseph Shraibman 2009-09-01 16:36:25 BUG #5028: CASE returns ELSE value always when type is "char"
Previous Message Dmitry 2009-09-01 13:51:52 BUG #5027: SQL query error?