pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: ow <oneway_111@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Out of memory error
Date: Tue, 15 Jun 2004 21:39:23 -0400
Message-ID: <15270.1087349963@sss.pgh.pa.us> (raw)
In-Reply-To: <20040615202424.75345.qmail@web53908.mail.yahoo.com>
References: <20040615202424.75345.qmail@web53908.mail.yahoo.com>

ow <oneway_111@yahoo.com> writes:
> insert into tableA
> select * from tableB
> where testdate >= '2000-01-01' and testdate <= '2002-12-31'

> What's happening is that pgSql gradually takes all (well, almost) physical and
> swap memory and then, I think, is getting killed by the kernel.

> 1) Is this normal?

No.

Perhaps you have a bunch of triggers (including foreign-key checks) on
tableA?  If so it'd probably be best to drop them temporarily.
The only reason I can think for this to eat memory is if the
pending-trigger-events queue is growing ...

			regards, tom lane



view thread (42+ messages)  latest in thread

Message-ID: <15270.1087349963@sss.pgh.pa.us>
Permalink:  ../15270.1087349963@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15270.1087349963@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, oneway_111@yahoo.com
  Subject: Re: Out of memory error
  In-Reply-To: <15270.1087349963@sss.pgh.pa.us>

* 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