Re: Copy Command out of memory - Mailing list pgsql-admin

From Tom Lane
Subject Re: Copy Command out of memory
Date
Msg-id 9913.1134624245@sss.pgh.pa.us
Whole thread Raw
In response to Copy Command out of memory  (Kevin Keith <kkeith@borderware.com>)
List pgsql-admin
Kevin Keith <kkeith@borderware.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

pgsql-admin by date:

Previous
From: Muhammad Farid
Date:
Subject: backup
Next
From: "sandhya"
Date:
Subject: Re: reg: Errors on Windows application(urgent)