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 F255B52968 for ; Tue, 12 Jul 2005 16:43:13 -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 61287-04 for ; Tue, 12 Jul 2005 19:43:11 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 942D7529B0 for ; Tue, 12 Jul 2005 16:43:10 -0300 (ADT) Received: (qmail 25388 invoked from network); 12 Jul 2005 19:43:10 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 12 Jul 2005 19:43:10 -0000 In-Reply-To: <1121165003.3085.165.camel@coppola.muc.ecircle.de> References: <1121165003.3085.165.camel@coppola.muc.ecircle.de> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <9284674D-C33E-44BE-98F6-1B939AB143D2@fastcrypt.com> Cc: Postgres JDBC Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: out of memory error on a delete command Date: Tue, 12 Jul 2005 15:43:09 -0400 To: Csaba Nagy X-Mailer: Apple Mail (2.730) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.017 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/53 X-Sequence-Number: 13201 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 > >