From: Gregory Stark <stark@enterprisedb.com>
To: kevin kempter <kevin@kevinkempterllc.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Partitioned tables - planner wont use indexes
Date: Sat, 05 Apr 2008 02:26:36 +0100
Message-ID: <87myo9drcj.fsf@oxford.xeocode.com> (raw)
In-Reply-To: <B5B9A348-AC8B-46E2-AA64-2627B2CC069F@kevinkempterllc.com>
References: <B5B9A348-AC8B-46E2-AA64-2627B2CC069F@kevinkempterllc.com>
"kevin kempter" <kevin@kevinkempterllc.com> writes:
> that the planner wants to do a sequential scan on each partition. We do have
> "constraint_elimination = on" set in the postgresql.conf file.
"constraint_exclusion" btw.
> myDB=# explain SELECT min(logdate) FROM part_master;
Er, yeah. Unfortunately this is just not a kind of query our planner knows how
to optimize when dealing with a partitioned table... yet. There are several
different pieces missing to make this work. There's some hope some of them
might show up for 8.4 but no guarantees.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's Slony Replication support!
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: stark@enterprisedb.com, kevin@kevinkempterllc.com
Subject: Re: Partitioned tables - planner wont use indexes
In-Reply-To: <87myo9drcj.fsf@oxford.xeocode.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