UPDATE memory exhaustion - Mailing list pgsql-hackers

From Ole Gjerde
Subject UPDATE memory exhaustion
Date
Msg-id Pine.LNX.4.05.9907261528210.9065-100000@snowman.icebox.org
Whole thread Raw
In response to Re: [HACKERS] Index not used on simple select  (Ole Gjerde <gjerde@icebox.org>)
List pgsql-hackers
Hey,
I was having problems with UPDATE, so I looked through the archives.  Back
around the 20th of May, there was a thread about update using all memory
(thread: strange behavior of UPDATE).

It now looks that I am having that same problem on pg 6.5.1.
Basically I tried running a simple query:update av_parts set nsn = 'xxxxx' where nsn = '';

And postgres started chugging along.  After a while(not sure how long) it
was using all memory on the computer.

The box has 82MB of memory and 128 MB of swap.
The query is trying to update 3.5 million rows.

I would try to gdb to the process and see where it's spending its time,
unfortunately that box is pretty much dead until I reboot it.  I'll try to
do it again later with a ulimit so I can actually log into the box :)

Thanks,
Ole Gjerde



pgsql-hackers by date:

Previous
From: "Mark Hollomon"
Date:
Subject: Re: [HACKERS] plperl intial pass
Next
From: Hannu Krosing
Date:
Subject: Re: [HACKERS] RE: [INTERFACES] Re: SSL patch