Re: BUG #15797: Wrong Execution Plan - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #15797: Wrong Execution Plan
Date
Msg-id 536.1557459173@sss.pgh.pa.us
Whole thread Raw
In response to BUG #15797: Wrong Execution Plan  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> Theres is a difference of the plan generated just only by putting the
> filters inside a inner query or outside a inner query.

You do realize that moving that WHERE clause changes the semantics
of the window functions?  The planner can't freely change the
filter location from one to the other.

            regards, tom lane



pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #15797: Wrong Execution Plan
Next
From: Amit Langote
Date:
Subject: Re: inconsistent results querying table partitioned by date