From: Sebastian Böck <sebastianboeck@freenet.de>
To: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Index not used on join with inherited tables
Date: Mon, 30 May 2005 18:36:39 +0200
Message-ID: <429B4117.1050103@freenet.de> (raw)
In-Reply-To: <200505300921.46460.josh@agliodbs.com>
References: <429B3734.2020609@freenet.de>
<200505300921.46460.josh@agliodbs.com>
Josh Berkus wrote:
> 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.
And the appends in a "SELECT * from parent" are UNIONs, aren't they?
> Also, if you're using inherited tables, it's unnecessary to use UNION; just
> select from the parent.
Yes, but then no index is used...
Sebastian
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: sebastianboeck@freenet.de, josh@agliodbs.com
Subject: Re: Index not used on join with inherited tables
In-Reply-To: <429B4117.1050103@freenet.de>
* 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