Re: BUG #7785: Bad plan for UNION ALL view containing JOIN

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: dag(at)nimrod(dot)no
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #7785: Bad plan for UNION ALL view containing JOIN
Date: 2013-01-04 17:30:44
Message-ID: 21511.1357320644@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

dag(at)nimrod(dot)no writes:
> The test case below demonstrates that the planner pushes down the WHERE (ON)
> clause in a UNION ALL view, but fails to push down the WHERE (ON) clause
> when a JOIN clause is introduced in the view.

> Any simple fix? :-)

No.

(See is_safe_append_member() for why not.)

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2013-01-04 18:03:07 Re: BUG #7786: select from view is computing columns not selected
Previous Message Dave Page 2013-01-04 16:53:40 Re: BUG #7781: pgagent incorrect installation