Out of memory error

From: ow <oneway_111(at)yahoo(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Out of memory error
Date: 2004-06-15 20:24:23
Message-ID: 20040615202424.75345.qmail@web53908.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

pg 7.4.2 on RH 7.3

Hi,

Am getting "Out of memory error" and pgSql is getting killed when running the
following statement in psql:

insert into tableA
select * from tableB
where testdate >= '2000-01-01' and testdate <= '2002-12-31'

TableB contains about 120 million records. The insert/select affects about
30-40M.

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.

Qs:

1) Is this normal?
2) Is there anything I can do besides adding more memory to the box?

Thanks



__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Lee Wu 2004-06-15 21:24:53 Re: table not shown
Previous Message Tom Lane 2004-06-15 20:21:48 Re: table not shown