From: Tom Lane <tgl@sss.pgh.pa.us>
To: Florian Lohoff <f@zz.de>
Cc: pgsql-performance@postgresql.org
Subject: Re: union all and filter / index scan -> seq scan
Date: Thu, 21 May 2015 11:28:16 -0400
Message-ID: <27276.1432222096@sss.pgh.pa.us> (raw)
In-Reply-To: <20150521104103.GB10049@pax.zz.de>
References: <20150521104103.GB10049@pax.zz.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>
Florian Lohoff <f@zz.de> writes:
> It seems the planner is not able to rewrite a union all
I do not see any problems with pushing indexable conditions down through a
UNION ALL when I try it. I speculate that either you are using a very old
9.1.x minor release, or the actual view is more complex than you've let on.
regards, tom lane
--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
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-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, f@zz.de
Subject: Re: union all and filter / index scan -> seq scan
In-Reply-To: <27276.1432222096@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