Re: Out of Memory during Insert

From: Thom Brown <thombrown(at)gmail(dot)com>
To: yue peng <pengyuebupt(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Out of Memory during Insert
Date: 2010-03-24 13:09:20
Message-ID: bddc86151003240609o1161390t3146949ca0a3d4c3@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 24 March 2010 10:57, yue peng <pengyuebupt(at)gmail(dot)com> wrote:

> Is there any other ways to still insert same amount of data and avoid this
> OOM error ?
>
>
I'd expect COPY to be the most effective way of bulk loading data into a
database. http://www.postgresql.org/docs/current/static/sql-copy.html

Or do inserts in smaller batches.

Do you happen to have any triggers or constraints on the table?

Regards

Thom

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2010-03-24 13:27:13 Re: Concatenate
Previous Message Nilesh Govindarajan 2010-03-24 11:50:40 Re: Help me with this multi-table query