out of memory error with large insert

From: "Sriram Dandapani" <sdandapani(at)counterpane(dot)com>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: out of memory error with large insert
Date: 2006-03-21 22:17:58
Message-ID: 6992E470F12A444BB787B5C937B9D4DF03C48BB4@ca-mail1.cis.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi

On a large transaction involving an insert of 8 million rows, after a
while Postgres complains of an out of memory error.

Failed on request of size 32

I get no other message.

Shmmax is set to 1 Gb

Shared_buffers set to 50000

Max memory on box is 4Gb..Postgres is the only major application running
other than a jvm with minimal heap.

Other than breaking this transaction into smaller bits(which may not be
possible as this scenario is not encountered often), am I missing
something.

Sriram

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2006-03-21 22:38:27 Re: out of memory error with large insert
Previous Message Ivo Rossacher 2006-03-21 21:38:03 Re: encoding question