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 B3DAA53431 for ; Fri, 22 Apr 2005 19:24:17 -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 89322-08 for ; Fri, 22 Apr 2005 22:24:08 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id E4DB05341C for ; Fri, 22 Apr 2005 19:24:07 -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 j3MMO7Oq018375; Fri, 22 Apr 2005 18:24:07 -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: References: <42690728.9040101@fastcrypt.com> <809.1114182092@sss.pgh.pa.us> <986.1114183053@sss.pgh.pa.us> Comments: In-reply-to Palle Girgensohn message dated "Sat, 23 Apr 2005 00:03:27 +0200" Date: Fri, 22 Apr 2005 18:24:07 -0400 Message-ID: <18374.1114208647@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/153 X-Sequence-Number: 12760 Palle Girgensohn writes: > hmmm.... is there any way to use the server's prepared statements from psql? psql can't use the V3 protocol facilities, which means that you can't duplicate the case very closely. After reading your report this morning, I made a little test program using libpq's PQexecParams (basically a quick hack on src/test/examples/testlibpq3.c) to duplicate your query. I didn't see any misbehavior; so there is some additional triggering condition beyond what you've told us. Given that the query packet looks 100% reasonable by eyeball, it seems unlikely that the issue is on the JDBC side (barring obvious snafus such as connecting to a different database than psql is talking to). But I don't have any data with which to pursue the hypothesis of a server bug. regards, tom lane