pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Csaba Nagy <nagy@ecircle-ag.com>
Cc: Postgres JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: out of memory error on a delete command
Date: Tue, 12 Jul 2005 15:43:09 -0400
Message-ID: <9284674D-C33E-44BE-98F6-1B939AB143D2@fastcrypt.com> (raw)
In-Reply-To: <1121165003.3085.165.camel@coppola.muc.ecircle.de>
References: <1121165003.3085.165.camel@coppola.muc.ecircle.de>

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
>
>




view thread (13+ messages)  latest in thread

Message-ID: <9284674D-C33E-44BE-98F6-1B939AB143D2@fastcrypt.com>
Permalink:  ../9284674D-C33E-44BE-98F6-1B939AB143D2@fastcrypt.com/
Also on:    postgresql.org/message-id/9284674D-C33E-44BE-98F6-1B939AB143D2@fastcrypt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pg@fastcrypt.com, nagy@ecircle-ag.com
  Subject: Re: out of memory error on a delete command
  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>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox