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 512FF52A91 for ; Tue, 12 Jul 2005 16:23:15 -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 54476-08 for ; Tue, 12 Jul 2005 19:23:09 +0000 (GMT) Received: from svr2.postgresql.org (svr2.postgresql.org [65.19.161.25]) by svr1.postgresql.org (Postfix) with ESMTP id CDCA6529DE for ; Tue, 12 Jul 2005 16:22:38 -0300 (ADT) Received: from mail.ecircle.de (mail.ecircle.de [195.140.186.200]) by svr2.postgresql.org (Postfix) with ESMTP id 6F844F191E for ; Tue, 12 Jul 2005 11:39:58 +0100 (BST) Received: from [192.168.1.110] (unknown [192.168.1.110]) by mail.ecircle.de (READY) with ESMTP id 7DD6355D139 for ; Tue, 12 Jul 2005 12:43:23 +0200 (CEST) Subject: out of memory error on a delete command From: Csaba Nagy To: Postgres JDBC Content-Type: text/plain Message-Id: <1121165003.3085.165.camel@coppola.muc.ecircle.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Tue, 12 Jul 2005 12:43:23 +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/52 X-Sequence-Number: 13200 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]