X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EA72052B7B for ; Wed, 13 Jul 2005 09:07:26 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 10538-05 for ; Wed, 13 Jul 2005 12:07:17 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id A051952AC7 for ; Wed, 13 Jul 2005 09:07:17 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.21]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1Dsg1G-0007Y6-W4; Thu, 14 Jul 2005 00:07:19 +1200 Message-ID: <42D503F7.6020008@opencloud.com> Date: Wed, 13 Jul 2005 12:07:19 +0000 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Cramer Cc: Csaba Nagy , Postgres JDBC Subject: Re: out of memory error on a delete command 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/62 X-Sequence-Number: 13210 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