Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 53B7764FC20 for ; Thu, 25 Sep 2008 10:12:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 96278-01 for ; Thu, 25 Sep 2008 10:12:07 -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 postgresql.org (Postfix) with ESMTP id 0ED7264FC01 for ; Thu, 25 Sep 2008 10:12:06 -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 m8PDBwvN005565; Thu, 25 Sep 2008 09:11:58 -0400 (EDT) To: Matthew Wakeling cc: pgsql-performance@postgresql.org Subject: Re: Slow index In-reply-to: References: Comments: In-reply-to Matthew Wakeling message dated "Thu, 25 Sep 2008 13:07:09 +0100" Date: Thu, 25 Sep 2008 09:11:58 -0400 Message-ID: <5564.1222348318@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/223 X-Sequence-Number: 31536 Matthew Wakeling writes: > Hi all. I'm having an interesting time performance-wise with a set of indexes. > Any clues as to what is going on or tips to fix it would be appreciated. Are the indexed columns all the same datatype? (And which type is it?) It might be helpful to REINDEX the "slow" index. It's possible that what you're seeing is the result of a chance imbalance in the btree, which reindexing would fix. regards, tom lane