pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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



view thread (3+ messages)

Message-ID: <27276.1432222096@sss.pgh.pa.us>
Permalink:  ../27276.1432222096@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27276.1432222096@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-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