Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 82CAE9FB7F4 for ; Mon, 2 Apr 2007 13:05:36 -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 16717-02 for ; Mon, 2 Apr 2007 13:05:20 -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 451239FB7DD for ; Mon, 2 Apr 2007 13:05:20 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l32G5IGY010498; Mon, 2 Apr 2007 12:05:18 -0400 (EDT) To: Rickard =?iso-8859-1?b?U2r2c3Ry9m0=?= cc: pgsql-admin@postgresql.org Subject: Re: PG does not use my index In-reply-to: <1175513194.4610e86a2ffab@mail.bluebottle.com> References: <1175253570.460cf2427984c@mail.bluebottle.com> <20418.1175271262@sss.pgh.pa.us> <1175513194.4610e86a2ffab@mail.bluebottle.com> Comments: In-reply-to Rickard =?iso-8859-1?b?U2r2c3Ry9m0=?= message dated "Mon, 02 Apr 2007 04:26:34 -0700" Date: Mon, 02 Apr 2007 12:05:17 -0400 Message-ID: <10497.1175529917@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/18 X-Sequence-Number: 25082 Rickard =?iso-8859-1?b?U2r2c3Ry9m0=?= writes: > fast db: > ------------------------- > -> Index Scan using testcase_b_bid_index on testcase (cost=0.00..1656.82 rows=426 width=38) (never executed)" > ------------------------- > slow db: > ------------------------- > -> Seq Scan on testcase (cost=0.00..2896.42 rows=33242 width=64) (actual time=77.027..791.014 rows=37093 loops=1)" > ------------------------- Let's see the query and the *whole* explain analyze output, not the part you (mistakenly) think is important. regards, tom lane