pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: Csaba Nagy <nagy@ecircle-ag.com>
Cc: Postgres JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: out of memory error on a delete command
Date: Wed, 13 Jul 2005 12:07:19 +0000
Message-ID: <42D503F7.6020008@opencloud.com> (raw)
In-Reply-To: <FD985253-E171-49FF-A443-913F28368BCF@fastcrypt.com>
References: <1121165003.3085.165.camel@coppola.muc.ecircle.de>
	<9284674D-C33E-44BE-98F6-1B939AB143D2@fastcrypt.com>
	<1121244636.3085.187.camel@coppola.muc.ecircle.de>
	<42D4ED39.8060506@opencloud.com>
	<FD985253-E171-49FF-A443-913F28368BCF@fastcrypt.com>

Dave Cramer wrote:

>>>>> 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.
> 
> 
> If this is the case, I wonder if we can be more verbose about the  
> message. Seems we can't see the forest for the trees here.

Well, we're just propagating whatever the server tells us so if you want 
a better message there it needs to be changed in the backend. We do 
exactly the same for all backend errors, it's just that usually it's a 
more obvious message along the lines of "ERROR: syntax error near ..." 
or similar.

We could add some sort of "Error reported by backend:" prefix, I 
suppose, but I'm not sure if that's really useful in most cases since 
most errors are self-explanatory.

Kris has suggested adding more fields from the backend's error to the 
default exception message, e.g. the DETAIL field. I'm not sure if that 
would add anything in this particular case though.

-O



view thread (13+ messages)  latest in thread

Message-ID: <42D503F7.6020008@opencloud.com>
Permalink:  ../42D503F7.6020008@opencloud.com/
Also on:    postgresql.org/message-id/42D503F7.6020008@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, pg@fastcrypt.com, nagy@ecircle-ag.com
  Subject: Re: out of memory error on a delete command
  In-Reply-To: <42D503F7.6020008@opencloud.com>
  References: <1121165003.3085.165.camel@coppola.muc.ecircle.de> <9284674D-C33E-44BE-98F6-1B939AB143D2@fastcrypt.com> <1121244636.3085.187.camel@coppola.muc.ecircle.de> <42D4ED39.8060506@opencloud.com> <FD985253-E171-49FF-A443-913F28368BCF@fastcrypt.com> <42D503F7.6020008@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