From: Tom Lane <tgl@sss.pgh.pa.us>
To: rodrigo.garcia@cross-join.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15797: Wrong Execution Plan
Date: Thu, 09 May 2019 23:32:53 -0400
Message-ID: <536.1557459173@sss.pgh.pa.us> (raw)
In-Reply-To: <15797-cdbb50ac108db9a2@postgresql.org>
References: <15797-cdbb50ac108db9a2@postgresql.org>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, rodrigo.garcia@cross-join.com
Subject: Re: BUG #15797: Wrong Execution Plan
In-Reply-To: <536.1557459173@sss.pgh.pa.us>
References: <15797-cdbb50ac108db9a2@postgresql.org> <536.1557459173@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox