Re: BUG #3012: Wrong JOIN order when a JOIN depends on result from a LEFT JOIN.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Pelle Johansson" <morth(at)morth(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3012: Wrong JOIN order when a JOIN depends on result from a LEFT JOIN.
Date: 2007-02-16 21:00:41
Message-ID: 7538.1171659641@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Pelle Johansson" <morth(at)morth(dot)org> writes:
> We have a join where we select which row to join on a subquery with a
> coalesce on a column from a left join, which is not working as expected.

The attached patch should fix this.

regards, tom lane

Attachment Content-Type Size
join-push-down-82.patch application/octet-stream 11.3 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Phil Frost 2007-02-16 21:59:38 Re: Segfaults and assertion failures with not too extraordinary views and queries
Previous Message Tom Lane 2007-02-16 05:57:12 Re: BUG #3015: libpq: PQftype() on a lo type result column returns Oid of type oid instead of Oid of type lo.