pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Timeouts on big queries with JDBC?
2+ messages / 2 participants
[nested] [flat]

* Timeouts on big queries with JDBC?
@ 2004-05-14 16:58  Ian S. Nelson <ian@stillsecure.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Ian S. Nelson @ 2004-05-14 16:58 UTC (permalink / raw)
  To: pgsql-jdbc

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 <http://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. /

 

Attachments:

  signature.asc (application/pgp-signature, 828B) download

  signature.asc (application/pgp-signature, 826B) download

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Timeouts on big queries with JDBC?
@ 2004-05-21 07:54  Oliver Jowett <oliver@opencloud.com>
  parent: Ian S. Nelson <ian@stillsecure.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Oliver Jowett @ 2004-05-21 07:54 UTC (permalink / raw)
  To: ian@stillsecure.com; +Cc: pgsql-jdbc

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-05-21 07:54 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-05-14 16:58 Timeouts on big queries with JDBC? Ian S. Nelson <ian@stillsecure.com>
2004-05-21 07:54 ` Oliver Jowett <oliver@opencloud.com>

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