From ian@stillsecure.com Fri May 14 16:58:46 2004 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 E0A19D1B1A8 for ; Fri, 14 May 2004 13:58:46 -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 53141-05 for ; Fri, 14 May 2004 13:58:27 -0300 (ADT) Received: from smtp.latis.com (smtp.latis.com [64.140.45.10]) by svr1.postgresql.org (Postfix) with ESMTP id E527FD1B17A for ; Fri, 14 May 2004 13:58:25 -0300 (ADT) Received: from smtp.latis.com (unknown [127.0.0.1]) by viruswall.latis.com (Postfix) with ESMTP id D3B54A819 for ; Fri, 14 May 2004 16:58:25 +0000 (UTC) Received: from pop3.latis.com (newsmtp.latis.com [10.0.16.10]) by smtp.latis.com (Postfix) with ESMTP id C29E5A80F for ; Fri, 14 May 2004 10:58:25 -0600 (MDT) Received: from stillsecure.com (beef.latis.com [10.0.16.195]) by pop3.latis.com (Postfix) with ESMTP id 73AA6F1C5 for ; Fri, 14 May 2004 10:58:26 -0600 (MDT) Message-ID: <40A4FAB1.2080701@stillsecure.com> Date: Fri, 14 May 2004 10:58:25 -0600 From: "Ian S. Nelson" Reply-To: ian@stillsecure.com Organization: StillSecure User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040421 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Timeouts on big queries with JDBC? X-Enigmail-Version: 0.83.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig700C05CC8110193F18E03688" X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/132 X-Sequence-Number: 10142 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig700C05CC8110193F18E03688 Content-Type: multipart/mixed; boundary="------------040905010706090004060905" This is a multi-part message in MIME format. --------------040905010706090004060905 Content-Type: multipart/alternative; boundary="------------010704030403050002020101" --------------010704030403050002020101 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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. thanks, Ian -- . . . *Ian S. Nelson Senior Software Engineer* *StillSecure* 303-381-3813 Direct 303-381-3881 Fax www.stillsecure.com /Reducing your risk has never been this easy./ . . . /The information transmitted is intended only for the person to which it is addressed and may contain confidential material. Review or other use of this information by persons other than the intended recipient is prohibited. If you've received this in error, please contact the sender and delete from any computer. / --------------010704030403050002020101 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit 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.


thanks,
Ian
--
~/.latissig

. . .
Ian S. Nelson
Senior Software Engineer

StillSecure

303-381-3813
Direct
303-381-3881
Fax

www.stillsecure.com
Reducing your risk has never been this easy.

. . .
The information transmitted is intended only for the person
to which it is addressed and may contain confidential material.
Review or other use of this information by persons other than
the intended recipient is prohibited. If you've received
this in error, please contact the sender and delete
from any computer.

 

--------------010704030403050002020101-- --------------040905010706090004060905 Content-Type: application/pgp-signature; name="signature.asc" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="signature.asc" LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcg djEuMi40IChHTlUvTGludXgpCgppUUlWQ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-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iQIVAwUBQKT6sThjWF4fiUUSAQJS8xAAnuXySW77c1sSkpLwguGGPf3tNgzky2DJ xuIiXSDR3sTha29eFcXgR+FlozalA+LT0EN7sX4yt8rmGHHjSjSQQwuzEJ553O2i EbNC8o9+cebKXYoxKeDG7frgaxnqNvzwZG15fEHxpDqCCFUst68eES5CP08INm1/ PvLsEIaijLGY5Wm1ySd14O6Zs9X2Dq3L8rwPV9szPTF8iR0bY3qO0LfJi+/XUR0s 2QSGhkP8z7bLjz38IjI3NgpD/xWGB8WymSylPXZDCAiVNVeV8lJ/Dc8gX9sfp0cf UCiTEZ6Qm1rKW2qpKquV8Oia+sRX87l+jmru2W++Dg0LpTK0vsx+kOIb1U02V8pc vpQ0et3bzoliejuWI4y2wakli1LC4mwa3NFISLiaV+yG84O5rrtAzAhNq95enkc0 84O60RdKFzFiGzPn8eZM/u3BeWa4QzbOdUiRDXOZRXELP3U2+hhgwspzYq/py6nR TLzfayBfkXh6JPZwWOhk7PK1gnHkfmhaXPPBF4AYNaVFEykYYBfDo4xRx0UvXAF8 LBiLpipOfbWk3WKD76m+vaG5hbzxFdbWfTlRczeBzE5kEmpOo0ojkj5ZkRS11OBB 7Aknxl0FMpWn7xoRGHr2fP5uNuAgocKWSZsVZlf33BaOdiTXELnx3Zs605fLOMbZ dxcbqIBILfw= =Sp3a -----END PGP SIGNATURE----- --------------enig700C05CC8110193F18E03688-- From oliver@opencloud.com Fri May 21 07:54:39 2004 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