Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id A15BE63271A for ; Sun, 28 Feb 2010 16:29:34 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 75595-03 for ; Sun, 28 Feb 2010 20:29:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from glacier.frostconsultingllc.com (glacier.frostconsultingllc.com [69.36.227.170]) by mail.postgresql.org (Postfix) with ESMTP id 2DEE563264C for ; Sun, 28 Feb 2010 16:29:24 -0400 (AST) Received: from adsl-63-195-55-98.dsl.snfc21.pacbell.net ([63.195.55.98] helo=Sidney-Stratton.local) by glacier.frostconsultingllc.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.69) (envelope-from ) id 1NlplP-00046W-GU; Sun, 28 Feb 2010 12:29:22 -0800 Message-ID: <4B8AD21A.2020904@agliodbs.com> Date: Sun, 28 Feb 2010 12:29:14 -0800 From: Josh Berkus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: Kevin Kempter CC: pgsql-performance@postgresql.org Subject: Re: partitioned tables query not using indexes References: <201002240736.36341.kevink@consistentstate.com> In-Reply-To: <201002240736.36341.kevink@consistentstate.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.443 tagged_above=-10 required=5 tests=BAYES_00=-2.599, SUBJECT_FUZZY_TION=0.156 X-Spam-Level: X-Archive-Number: 201002/400 X-Sequence-Number: 37821 > 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