X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8D659535ED for ; Fri, 22 Apr 2005 19:40:49 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 96169-04 for ; Fri, 22 Apr 2005 22:40:38 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 07D90535AF for ; Fri, 22 Apr 2005 19:40:34 -0300 (ADT) 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 j3MMeXOM018553; Fri, 22 Apr 2005 18:40:33 -0400 (EDT) To: Palle Girgensohn Cc: pg@fastcrypt.com, pgsql-jdbc@postgresql.org Subject: Re: BUG? res.next() == false, but psql finds tuples? In-reply-to: <7D160FC0C5EC5E58B87529F6@palle.girgensohn.se> References: <42690728.9040101@fastcrypt.com> <809.1114182092@sss.pgh.pa.us> <986.1114183053@sss.pgh.pa.us> <18374.1114208647@sss.pgh.pa.us> <7D160FC0C5EC5E58B87529F6@palle.girgensohn.se> Comments: In-reply-to Palle Girgensohn message dated "Sat, 23 Apr 2005 00:30:18 +0200" Date: Fri, 22 Apr 2005 18:40:33 -0400 Message-ID: <18552.1114209633@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/155 X-Sequence-Number: 12762 Palle Girgensohn writes: > Hmm, yes, there is indeed one thing I didn't tell you... the server is > patches with my ICU patch. That might be a problem? The patch is at > http://people.freebsd.org/~girgen/postgresql-icu Hmm ... that does fool around with the behavior of string comparisons, doesn't it? I know nothing about ICU so can't really critique the patch, but I'd say the next step is to see if you can reproduce the failure without ICU in place. Another thing to think about is whether you maybe need to reindex whatever indexes exist on participant.userid. If you've changed the collation ordering by installing or bug-fixing ICU, then pre- existing textual indexes are corrupt. Not sure why psql wouldn't show the same failure, but maybe a different plan is being chosen in the two cases? It'd be worth checking to see if you get the same plans for explain analyze select lang from participant where userid = 'mango' and course_id = 38; prepare foo(varchar,int4) as select lang from participant where userid = $1 and course_id = $2; explain analyze execute foo('mango',38); regards, tom lane