out of memory error with large insert - Mailing list pgsql-admin

From Sriram Dandapani
Subject out of memory error with large insert
Date
Msg-id 6992E470F12A444BB787B5C937B9D4DF03C48BB4@ca-mail1.cis.local
Whole thread Raw
Responses Re: out of memory error with large insert
List 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

pgsql-admin by date:

Previous
From: Ivo Rossacher
Date:
Subject: Re: encoding question
Next
From: Tom Lane
Date:
Subject: Re: out of memory error with large insert