Re: Out of memory error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ow <oneway_111(at)yahoo(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Out of memory error
Date: 2004-06-16 01:39:23
Message-ID: 15270.1087349963@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

ow <oneway_111(at)yahoo(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2004-06-16 02:07:49 Re: VARCHAR -vs- CHAR: huge performance difference?
Previous Message C. Bensend 2004-06-16 01:31:56 Re: VARCHAR -vs- CHAR: huge performance difference?