X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 9CA59D1B266 for ; Fri, 21 May 2004 04:54:39 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 36004-02 for ; Fri, 21 May 2004 04:54:20 -0300 (ADT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id EBB22D1B1D5 for ; Fri, 21 May 2004 04:54:18 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BR4rB-00085p-00; Fri, 21 May 2004 19:54:17 +1200 Message-ID: <40ADB5A6.7050803@opencloud.com> Date: Fri, 21 May 2004 19:54:14 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: ian@stillsecure.com Cc: pgsql-jdbc@postgresql.org Subject: Re: Timeouts on big queries with JDBC? References: <40A4FAB1.2080701@stillsecure.com> In-Reply-To: <40A4FAB1.2080701@stillsecure.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200405/144 X-Sequence-Number: 10154 Ian S. Nelson wrote: > I'm doing some huge queries with a cursor and JDBC on Postgresql > 7.4.2 It has been working pretty well so far but I've ramped my data > set up a bit and now I get these exceptions when iterating through the > results set: > > org.postgresql.util.PSQLException: Connection is closed. Operation is > not permitted. > > > Is this a time out problem? Something else? There is about 10million > rows in the table I'm querying. Unless you're seeing other errors (check the server logs too) before the quoted exception, this doesn't look like a timeout problem. Rather, it looks like you're trying to use a resultset after the connection that created it was closed. The JDBC spec doesn't let you do this -- check your application code. -O