Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 256669FB395 for ; Sat, 19 May 2007 20:20:40 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 00506-02 for ; Sat, 19 May 2007 20:20:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id C83829FB386 for ; Sat, 19 May 2007 20:20:36 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l4JNKYUQ019411; Sat, 19 May 2007 19:20:34 -0400 (EDT) To: "s d" cc: pgsql-performance@postgresql.org Subject: Re: QP Problem In-reply-to: <24b53fa00705191508i36fbf192me7152c79bf2ec50f@mail.gmail.com> References: <24b53fa00705191508i36fbf192me7152c79bf2ec50f@mail.gmail.com> Comments: In-reply-to "s d" message dated "Sat, 19 May 2007 15:08:07 -0700" Date: Sat, 19 May 2007 19:20:34 -0400 Message-ID: <19410.1179616834@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/374 X-Sequence-Number: 24764 "s d" writes: > I have about 6 tables that inherit from one table. They all have the > exact same indexes but when i try to query all by a row (which is > indexed, btree) the QP decides to do sequential scan for some of them > (the bigger tables) rather than use the index. Please show the details: the table definitions, exact query, and plan. regards, tom lane