X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 4136A9DCACD for ; Thu, 12 Jan 2006 01:02:24 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90063-10 for ; Thu, 12 Jan 2006 01:02:22 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 578799DCAD2 for ; Thu, 12 Jan 2006 01:02:21 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id k0C52FKY001240; Thu, 12 Jan 2006 00:02:15 -0500 (EST) To: Stefan Holzheu cc: pgsql-admin@postgresql.org Subject: Re: like vs = In-reply-to: <43BD30D4.1030202@bayceer.uni-bayreuth.de> References: <43BD30D4.1030202@bayceer.uni-bayreuth.de> Comments: In-reply-to Stefan Holzheu message dated "Thu, 05 Jan 2006 15:44:36 +0100" Date: Thu, 12 Jan 2006 00:02:15 -0500 Message-ID: <1239.1137042135@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.085 required=5 tests=[AWL=0.085] X-Spam-Score: 0.085 X-Spam-Level: X-Archive-Number: 200601/138 X-Sequence-Number: 20226 Stefan Holzheu writes: > Other queries with the equal operator do match rows. Am I missing something? > Postgresql: 8.1.1 > Fieldtype: text > Database encoding: Latin9 What LC_COLLATE locale are you using? Your report looks a whole lot like the recently identified problem with locales that think that some not-bitwise-identical strings are "equal", as in this thread: http://archives.postgresql.org/pgsql-general/2005-12/msg00740.php If the same queries return sane results after doing set enable_indexscan = off, then that's probably what the problem is. If so, updating to 8.1.2 and REINDEXing should fix it. regards, tom lane