From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org
Subject: Re: Issue with partition elimination
Date: Mon, 25 Apr 2011 11:06:47 -0700
Message-ID: <4DB5B837.2010602@agliodbs.com> (raw)
In-Reply-To: <505432.93484.qm@web120209.mail.ne1.yahoo.com>
References: <505432.93484.qm@web120209.mail.ne1.yahoo.com>
On 4/21/11 6:26 PM, Paul Pierce wrote:
> What was noticed, that the only case when Postgres is actually going to execute
> the query against the right partitions is query #1.
>
> Is that by design? Second query join, will also result in 3 days(3 partitions)
Partition elimination currently can only handle constants and
expressions which are equivalent to constants. It will not filter on
Joins successfully.
This will improve somewhat in 9.1, possibly enough to fix your case.
Please test this on 9.1a5 and see how well it works, and give us feedback.
--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com
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
Subject: Re: Issue with partition elimination
In-Reply-To: <4DB5B837.2010602@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