agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Tom Lane <tgl@sss.pgh.pa.us>
To: Herwig Goemans <herwig.goemans@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: why is PG NOT pushing where clause to VIEW ? Resulting in bad performance.
Date: Tue, 07 Feb 2017 11:37:33 -0500
Message-ID: <16847.1486485453@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKaDz_Eip3sG72Lj3AXd83HmotkaNMQiukxjCDk_vRYXjttyLQ@mail.gmail.com>
References: <CAKaDz_Eip3sG72Lj3AXd83HmotkaNMQiukxjCDk_vRYXjttyLQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
Herwig Goemans <herwig.goemans@gmail.com> writes:
> I am wondering why a certain query is NOT pushing the where clause to the
> view. See query and explain plan:
There's no provision for transitively applying IN clauses to other
variables. I'm not entirely sure whether it would be a good idea,
but in any case, it's not there and not planned.
regards, tom lane
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
view thread (3+ messages) latest in thread
Message-ID: <16847.1486485453@sss.pgh.pa.us>
Permalink: ../16847.1486485453@sss.pgh.pa.us/
Also on: postgresql.org/message-id/16847.1486485453@sss.pgh.pa.us
reply
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, herwig.goemans@gmail.com
Subject: Re: why is PG NOT pushing where clause to VIEW ? Resulting in bad performance.
In-Reply-To: <16847.1486485453@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox