X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B87A7D6E38 for ; Mon, 29 Aug 2005 08:28:24 -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 34502-03 for ; Mon, 29 Aug 2005 11:28:21 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by svr1.postgresql.org (Postfix) with ESMTP id E8BEED7837 for ; Mon, 29 Aug 2005 08:28:19 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id i30so729568wra for ; Mon, 29 Aug 2005 04:28:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BjHk4Qg0y7qXAtNBTgxakUqZDAGZ6z1Ye0a5hwkox+Nqt/keBJY5JAGCIPdnkUnTLLxRT/jVDj56WucKnOvUCxj4xw6FXRy6mDwWYlieGc5eVhAAphSU9IuvaG16bRKaoAH54j77J2w/PnNLQxeed1Hj/Srw0DEFf6+IcvCGi+E= Received: by 10.54.18.28 with SMTP id 28mr6160003wrr; Mon, 29 Aug 2005 04:28:23 -0700 (PDT) Received: by 10.54.116.7 with HTTP; Mon, 29 Aug 2005 04:28:22 -0700 (PDT) Message-ID: <194f625505082904281f3ca75@mail.gmail.com> Date: Mon, 29 Aug 2005 13:28:23 +0200 From: Clemens Eisserer To: pgsql-jdbc@postgresql.org Subject: Re: NullPointerException when calling ResultSet.absolute(int) In-Reply-To: <43122F3E.3040002@opencloud.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <194f625505082810015456609c@mail.gmail.com> <43122F3E.3040002@opencloud.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.024 required=5 tests=[RCVD_BY_IP=0.024] X-Spam-Level: X-Archive-Number: 200508/194 X-Sequence-Number: 13763 Hello Oliver and thanks a lot for answering, > Either you can use two queries, or use a scrollable ResultSet and call > ResultSet.last() / ResultSet.getRow(). The second approach causes the > entire ResultSet to be loaded into the Java heap, though, so it's not so > good for large results. Currently I use the last()/getRow approach but as you confirmed this approach does exactly what I don't want - to transfer the whole selection between server and client. Isn't there a workarround for this, maybe setting the fetch-size (default set to 0)? Thx, lg Clemens