Re: BUG #7785: Bad plan for UNION ALL view containing JOIN - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #7785: Bad plan for UNION ALL view containing JOIN
Date
Msg-id 21511.1357320644@sss.pgh.pa.us
Whole thread Raw
In response to BUG #7785: Bad plan for UNION ALL view containing JOIN  (dag@nimrod.no)
List pgsql-bugs
dag@nimrod.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

pgsql-bugs by date:

Previous
From: Dave Page
Date:
Subject: Re: BUG #7781: pgagent incorrect installation
Next
From: Tom Lane
Date:
Subject: Re: BUG #7786: select from view is computing columns not selected