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 A90D45289B for ; Wed, 13 Jul 2005 09:14:07 -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 11866-05 for ; Wed, 13 Jul 2005 12:14:06 +0000 (GMT) Received: from mail.ecircle.de (mail.ecircle.de [195.140.186.200]) by svr1.postgresql.org (Postfix) with ESMTP id 183DC52844 for ; Wed, 13 Jul 2005 09:14:04 -0300 (ADT) Received: from [192.168.1.110] (unknown [192.168.1.110]) by mail.ecircle.de (READY) with ESMTP id 68ED511D97F; Wed, 13 Jul 2005 14:14:07 +0200 (CEST) Subject: Re: out of memory error on a delete command From: Csaba Nagy To: Oliver Jowett Cc: Dave Cramer , Postgres JDBC 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> <42D503F7.6020008@opencloud.com> Content-Type: text/plain Message-Id: <1121256847.3085.192.camel@coppola.muc.ecircle.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 13 Jul 2005 14:14:07 +0200 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.016 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/63 X-Sequence-Number: 13211 Well, I'm still at a guess what could cause the problem on the kind of query I was executing (a "delete"). Kris' explanation with the deferred trigger was the closest till now, except the trigger was not deferred, and truncate still succeded with the "ON DELETE" trigger in place... so I wonder now if there is some problem with the backend ? Maybe I should post on the general list. Cheers, Csaba. On Wed, 2005-07-13 at 14:07, Oliver Jowett wrote: > 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