Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 752DB6333D4 for ; Wed, 1 Jul 2009 14:44:57 -0300 (ADT) 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 89516-07 for ; Wed, 1 Jul 2009 14:44:56 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 80FC9633208 for ; Wed, 1 Jul 2009 14:44:56 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id n61Hikp4013725; Wed, 1 Jul 2009 13:44:46 -0400 (EDT) To: Tim Haak cc: pgsql-sql@postgresql.org Subject: Re: Partitioned tables not using index for min and max 8.2.7? In-reply-to: <4A4B91FF.8040308@lucidview.net> References: <4A4B91FF.8040308@lucidview.net> Comments: In-reply-to Tim Haak message dated "Wed, 01 Jul 2009 18:42:39 +0200" Date: Wed, 01 Jul 2009 13:44:46 -0400 Message-ID: <13724.1246470286@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.41 tagged_above=0 required=5 tests=SUBJECT_FUZZY_TION=0.41 X-Spam-Level: X-Archive-Number: 200907/7 X-Sequence-Number: 32748 Tim Haak writes: > I am running the following query again a partitioned table in 8.2.7. It > does index scans which is unexpected as there are indexes for the > log_date column. The index min/max optimization only works on single tables at the moment. Sorry. regards, tom lane