Re: out of memory error on a delete command - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: out of memory error on a delete command
Date
Msg-id 42D4ED39.8060506@opencloud.com
Whole thread Raw
In response to Re: out of memory error on a delete command  (Csaba Nagy <nagy@ecircle-ag.com>)
Responses Re: out of memory error on a delete command
List pgsql-jdbc
Csaba Nagy wrote:
> OK, that might very well be a reason... is there a way to see what were
> the error messages ? Are they accumulating at server side or on the JDBC
> side ? If it's the JDBC side, is it reasonable maybe to just discard
> error messages if they are too many, or truncate if it's too big, in
> order to avoid this exception (which is not very helpful in itself...) ?

I think Dave actually means "too many warnings" (or NOTICEs?) which can
indeed fill Java heap as they're accumulated as SQLWarnings attached to
the relevant Statement. In that case, though, you'd see an
OutOfMemoryError. This exception:

>>>org.postgresql.util.PSQLException: ERROR: out of memory

is just the driver reporting a server-side error, so it's the server
that's run out of memory in this case.

-O

pgsql-jdbc by date:

Previous
From: Csaba Nagy
Date:
Subject: Re: out of memory error on a delete command
Next
From: Dave Cramer
Date:
Subject: Re: patch to fix jdk 2 compile errors and v2 compatability