Re: Re out of memory error with large insert

From: "Sriram Dandapani" <sdandapani(at)counterpane(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Re out of memory error with large insert
Date: 2006-03-23 19:16:31
Message-ID: 6992E470F12A444BB787B5C937B9D4DF03C492F5@ca-mail1.cis.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

What are the recommended ulimit settings. A single postgres connection
that does an insert(with no other database activity) of say 6 million
rows into a 15 column table (all integer columns) cannot complete due to
an out of memory error

This happens on a 4Gb Linux box with shmmax set to 1gb and about 50000
shared_buffers

I would really appreciate any help ...

Thanks

Sriram

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Tuesday, March 21, 2006 7:24 PM
To: Sriram Dandapani
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] Re out of memory error with large insert

"Sriram Dandapani" <sdandapani(at)counterpane(dot)com> writes:
> Why doesn't Postgres use swap in this situation

Perhaps you need to adjust the ulimit settings that the postmaster is
started under.

regards, tom lane

Browse pgsql-admin by date

  From Date Subject
Next Message Pallav Kalva 2006-03-23 19:56:48 Archive Command Configuration
Previous Message Robin Iddon 2006-03-23 17:01:12 Re: Random disconnects