From: Josh Berkus <josh@agliodbs.com>
To: Kenneth Marshall <ktm@rice.edu>
Cc: Kevin Kempter <kevink@consistentstate.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: partitioned tables query not using indexes
Date: Sun, 28 Feb 2010 14:46:52 -0800
Message-ID: <4B8AF25C.3030209@agliodbs.com> (raw)
In-Reply-To: <20100228215157.GA14613@it.is.rice.edu>
References: <201002240736.36341.kevink@consistentstate.com>
<4B8AD21A.2020904@agliodbs.com>
<20100228215157.GA14613@it.is.rice.edu>
On 2/28/10 1:51 PM, Kenneth Marshall wrote:
> On Sun, Feb 28, 2010 at 12:29:14PM -0800, Josh Berkus wrote:
>>> However the same query against the base table when specifying the check
>>> constraint key in the where clause produces sequential scans:
>> Does the "master" table have the same indexes as the slave partitions?
>>
>> --Josh Berkus
>>
> Does this help? I have an empty base table without indexes and partitions
> underneath that do have the index. I did not think that an index on the
> parent table did anything.
I'm not sure that it does, but "try it and see" is easier than reading
the planner code.
--Josh Berkus
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, ktm@rice.edu, kevink@consistentstate.com
Subject: Re: partitioned tables query not using indexes
In-Reply-To: <4B8AF25C.3030209@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