From: ow <oneway_111@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: Out of memory error
Date: Tue, 15 Jun 2004 13:24:23 -0700 (PDT)
Message-ID: <20040615202424.75345.qmail@web53908.mail.yahoo.com> (raw)
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
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: oneway_111@yahoo.com
Subject: Re: Out of memory error
In-Reply-To: <20040615202424.75345.qmail@web53908.mail.yahoo.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