pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Sebastian Böck <sebastianboeck@freenet.de>
Cc: pgsql-performance@postgresql.org
Subject: Re: Index not used on join with inherited tables
Date: Mon, 30 May 2005 09:21:46 -0700
Message-ID: <200505300921.46460.josh@agliodbs.com> (raw)
In-Reply-To: <429B3734.2020609@freenet.de>
References: <429B3734.2020609@freenet.de>

Sebastian,

> I'm having another problem with a query that takes to long, because
> the appropriate index is not used.

PostgreSQL is not currently able to push down join criteria into UNIONed 
subselects.   It's a TODO. 

Also, if you're using inherited tables, it's unnecessary to use UNION; just 
select from the parent.

-- 
Josh Berkus
Aglio Database Solutions
San Francisco



view thread (3+ messages)  latest in thread

Message-ID: <200505300921.46460.josh@agliodbs.com>
Permalink:  ../200505300921.46460.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200505300921.46460.josh@agliodbs.com

 · 

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: josh@agliodbs.com, sebastianboeck@freenet.de
  Subject: Re: Index not used on join with inherited tables
  In-Reply-To: <200505300921.46460.josh@agliodbs.com>

* 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