Re: BUG #6154: wrong result with nested left-joins

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: "ai" <listar(at)mail(dot)ru>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6154: wrong result with nested left-joins
Date: 2011-08-08 18:11:17
Message-ID: 9240.1312827077@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov> writes:
> "ai" <listar(at)mail(dot)ru> wrote:
>> Oops.. I just saw, that I send you "correct" (already with
> "workaround")
>> sql-code instead of "wrong"...

>> here is "wrong" (difference is in "SELECT sub3.key3, sub4.value2
> FROM" ):

> OK, that is still happening, and looks wrong to me.

Yeah, I see it too. It seems to be evaluating the placeholder for the
COALESCE expression at the wrong join level. Not sure why, yet.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message listar 2011-08-08 20:22:02 BUG #6155: literal definition of arrays with double qoutes leads to error
Previous Message ai 2011-08-08 17:50:33 Re: BUG #6154: wrong result with nested left-joins