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

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, "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-02 16:52:48
Message-ID: 20090902165248.GA5314@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Tom Lane wrote:
> Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> writes:
> > Tom Lane wrote:
> >> With the fix I was just about to apply, all four cases give the first
> >> set of results. This clearly satisfies the principle of least
> >> astonishment, at least more nearly than what we have; but it equally
> >> clearly is *not* going to restore 8.4 to work just like 8.3.
>
> > Right, 8.3 had the same underlying problem, 8.4 just makes it more
> > visible as it's better at flattening subqueries.
>
> What is interesting is that the CASE in the OP's original submission
> is apparently only there to dodge the visible-since-8.0 version of
> the problem; at least I can't see that it does anything else useful.
> The complaint apparently is not so much that 8.3 was right, as that
> the workaround for its bug stopped working ...

In that light, it probably doesn't make much sense to backport the fix
further back, given that the people (person?) bitten by the bug surely
must already be working around it.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Sam Mason 2009-09-02 16:57:19 Re: BUG #5028: CASE returns ELSE value always when type is"char"
Previous Message Robert Haas 2009-09-02 16:36:00 Re: BUG #5028: CASE returns ELSE value always when type is"char"