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 381FF52BDE for ; Wed, 13 Jul 2005 05:50:41 -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 64319-06 for ; Wed, 13 Jul 2005 08:50:39 +0000 (GMT) Received: from mail.ecircle.de (mail.ecircle.de [195.140.186.200]) by svr1.postgresql.org (Postfix) with ESMTP id 7136852B38 for ; Wed, 13 Jul 2005 05:50:34 -0300 (ADT) Received: from [192.168.1.110] (unknown [192.168.1.110]) by mail.ecircle.de (READY) with ESMTP id 54FB211C027; Wed, 13 Jul 2005 10:50:36 +0200 (CEST) Subject: Re: out of memory error on a delete command From: Csaba Nagy To: Dave Cramer Cc: Postgres JDBC In-Reply-To: <9284674D-C33E-44BE-98F6-1B939AB143D2@fastcrypt.com> References: <1121165003.3085.165.camel@coppola.muc.ecircle.de> <9284674D-C33E-44BE-98F6-1B939AB143D2@fastcrypt.com> Content-Type: text/plain Message-Id: <1121244636.3085.187.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 10:50:36 +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/58 X-Sequence-Number: 13206 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...) ? Thanks, Csaba. On Tue, 2005-07-12 at 21:43, Dave Cramer wrote: > Looks like you received too many error messages > > Dave > On 12-Jul-05, at 6:43 AM, Csaba Nagy wrote: > > > Hi all, > > > > I wonder what could cause such an exception (see below). I was > > executing > > a "DELETE FROM table_name" command on a table with a lot of records (~ > > 80 million). Now after the fact I realize I should have tried it in > > psql > > too to see if it fails there too, but I truncated the tables in the > > meantime via "TRUNCATE". The only reason I tried to do it via > > delete is > > to see how many rows were deleted, but it looks like a bad idea... > > > > Any enlightening thoughts ? > > > > Cheers, > > Csaba. > > > > The (partial) stack trace: > > > > org.postgresql.util.PSQLException: ERROR: out of memory > > at > > org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse > > (QueryExecutorImpl.java:1471) > > at > > org.postgresql.core.v3.QueryExecutorImpl.processResults > > (QueryExecutorImpl.java:1256) > > at > > org.postgresql.core.v3.QueryExecutorImpl.execute > > (QueryExecutorImpl.java:175) > > at > > org.postgresql.jdbc2.AbstractJdbc2Statement.execute > > (AbstractJdbc2Statement.java:389) > > at > > org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags > > (AbstractJdbc2Statement.java:314) > > at > > org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate > > (AbstractJdbc2Statement.java:264) > > [... our classes follow] > > > > > > > > ---------------------------(end of > > broadcast)--------------------------- > > TIP 5: don't forget to increase your free space map settings > > > > >