From: Tom Lane <tgl@sss.pgh.pa.us>
To: Palle Girgensohn <girgen@pingpong.net>
Cc: pg@fastcrypt.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: BUG? res.next() == false, but psql finds tuples?
Date: Fri, 22 Apr 2005 18:40:33 -0400
Message-ID: <18552.1114209633@sss.pgh.pa.us> (raw)
In-Reply-To: <7D160FC0C5EC5E58B87529F6@palle.girgensohn.se>
References: <D05A33D3D62A6E1764DC8B8B@rambutan.pingpong.net>
<42690728.9040101@fastcrypt.com>
<809.1114182092@sss.pgh.pa.us>
<BB67E201AD7D7BB34C75A481@rambutan.pingpong.net>
<986.1114183053@sss.pgh.pa.us>
<C7ACBCB95A235485E9CD223F@palle.girgensohn.se>
<18374.1114208647@sss.pgh.pa.us>
<7D160FC0C5EC5E58B87529F6@palle.girgensohn.se>
Palle Girgensohn <girgen@pingpong.net> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, girgen@pingpong.net, pg@fastcrypt.com
Subject: Re: BUG? res.next() == false, but psql finds tuples?
In-Reply-To: <18552.1114209633@sss.pgh.pa.us>
References: <D05A33D3D62A6E1764DC8B8B@rambutan.pingpong.net> <42690728.9040101@fastcrypt.com> <809.1114182092@sss.pgh.pa.us> <BB67E201AD7D7BB34C75A481@rambutan.pingpong.net> <986.1114183053@sss.pgh.pa.us> <C7ACBCB95A235485E9CD223F@palle.girgensohn.se> <18374.1114208647@sss.pgh.pa.us> <7D160FC0C5EC5E58B87529F6@palle.girgensohn.se> <18552.1114209633@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox