Re: Copy Command out of memory

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kevin Keith <kkeith(at)borderware(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Copy Command out of memory
Date: 2005-12-15 05:24:05
Message-ID: 9913.1134624245@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Kevin Keith <kkeith(at)borderware(dot)com> writes:
> I was trying to run a bulk data load using the COPY command on PGSQL 8.1.0.
> After loading about 3,500,000 records it ran out of memory - I am
> assuming because it ran out of space to store such a large transaction.

COPY per se shouldn't eat memory.

Perhaps you have some AFTER INSERT triggers on this table (note foreign
key constraints would create such)? The pending-trigger queue could
have overflowed memory. Offhand I can't think of another reason.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message sandhya 2005-12-15 05:39:43 reg:Import&Export functions
Previous Message Muhammad Farid 2005-12-15 01:00:10 backup