pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: ian@stillsecure.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Timeouts on big queries with JDBC?
Date: Fri, 21 May 2004 19:54:14 +1200
Message-ID: <40ADB5A6.7050803@opencloud.com> (raw)
In-Reply-To: <40A4FAB1.2080701@stillsecure.com>
References: <40A4FAB1.2080701@stillsecure.com>

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



view thread (2+ messages)

Message-ID: <40ADB5A6.7050803@opencloud.com>
Permalink:  ../40ADB5A6.7050803@opencloud.com/
Also on:    postgresql.org/message-id/40ADB5A6.7050803@opencloud.com

 · 

reply

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: oliver@opencloud.com, ian@stillsecure.com
  Subject: Re: Timeouts on big queries with JDBC?
  In-Reply-To: <40ADB5A6.7050803@opencloud.com>
  References: <40A4FAB1.2080701@stillsecure.com> <40ADB5A6.7050803@opencloud.com>

* 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