From: Josh Berkus <josh@agliodbs.com>
To: Kevin Kempter <kevink@consistentstate.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: partition queries hitting all partitions even though check key is specified
Date: Mon, 12 Jul 2010 22:01:08 -0500
Message-ID: <4C3BD6F4.4070802@agliodbs.com> (raw)
In-Reply-To: <200909020905.18688.kevink@consistentstate.com>
References: <200909020852.30405.kevink@consistentstate.com>
<dcc563d10909020802h524163besce7217af8466a7cd@mail.gmail.com>
<200909020905.18688.kevink@consistentstate.com>
On 9/2/09 10:05 AM, Kevin Kempter wrote:
> On Wednesday 02 September 2009 09:02:27 Scott Marlowe wrote:
>> On Wed, Sep 2, 2009 at 8:52 AM, Kevin Kempter<kevink@consistentstate.com>
> wrote:
>>> Hi all;
>>>
>>> I cant figure out why we're scanning all of our partitions.
I don't think extract() is immutable, which would pretty much invalidate
your check constraints as far as CE is concerned.
I suggest feeding the actual numeric values to the check constraints.
--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.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, kevink@consistentstate.com
Subject: Re: partition queries hitting all partitions even though check key is specified
In-Reply-To: <4C3BD6F4.4070802@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