pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Ruprecht <chrup999@yahoo.com>
To: pgadmin <pgsql-admin@postgresql.org>
Subject: Memory exhausted errors
Date: Wed, 1 Aug 2001 09:11:19 -0500
Message-ID: <002301c11a93$d631ff00$5dd26383@corp.compucom.com> (raw)

Hi all,

on a daily basis, I load records from an external source into my database. During the load, the records go through a validation process during which I have to read anywhere between 2 and 15 records from the database.
The postmaster process which does this, starts out with 10 MB memory usage but soon swells up to about 500 MB (on a normal day). Some days, I receive a larger amount of data and the process swells up to about 1.4 GB before it bombs out with a 'memory exhausted' message.
I believe, the answer is to have the transactions smaller, but since PL/PGSQL runs everything is one big transaction, how would I go about that? Can I temporarily disable transaction processing all together for this process? (if the load fails, I can easily delete the created records by hand).

Best regards,
Chris

view thread (7+ messages)  latest in thread

Message-ID: <002301c11a93$d631ff00$5dd26383@corp.compucom.com>
Permalink:  ../002301c11a93$d631ff00$5dd26383@corp.compucom.com/
Also on:    postgresql.org/message-id/002301c11a93$d631ff00$5dd26383@corp.compucom.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-admin@postgresql.org
  Cc: chrup999@yahoo.com
  Subject: Re: Memory exhausted errors
  In-Reply-To: <002301c11a93$d631ff00$5dd26383@corp.compucom.com>
  References: <002301c11a93$d631ff00$5dd26383@corp.compucom.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