Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 655231337B2F for ; Thu, 7 Apr 2011 03:37:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 36684-04 for ; Thu, 7 Apr 2011 06:37:32 +0000 (UTC) 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 86C52133655C for ; Thu, 7 Apr 2011 03:37:31 -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 p376bTMM006665; Thu, 7 Apr 2011 02:37:29 -0400 (EDT) To: Thom Brown cc: pgsql-performance Subject: Re: Partial index slower than regular index In-reply-to: References: <4331.1302065062@sss.pgh.pa.us> Comments: In-reply-to Thom Brown message dated "Wed, 06 Apr 2011 09:15:25 +0100" Date: Thu, 07 Apr 2011 02:37:29 -0400 Message-ID: <6664.1302158249@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/70 X-Sequence-Number: 43132 Thom Brown writes: > On 6 April 2011 05:44, Tom Lane wrote: >> It looks like the index predicate expression isn't getting the right >> collation assigned, so predtest.c decides the query doesn't imply the >> index's predicate.  Too tired to look into exactly why right now, but >> it's clearly bound up in all the recent collation changes. > Testing it again with very explicit collations, it still has issues: Yeah, any sort of collation-sensitive operator in an index WHERE clause was just plain broken. Fixed now. regards, tom lane