From: Joe Conway <mail@joeconway.com>
To: Nigel J. Andrews <nandrews@investsystems.co.uk>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: COPY performance
Date: Sat, 13 Apr 2002 12:19:34 -0700
Message-ID: <3CB884C6.2050307@joeconway.com> (raw)
References: <Pine.LNX.4.21.0204131959070.3278-100000@ponder.fairway2k.co.uk>
Nigel J. Andrews wrote:
>
>
> I should have mentioned that I'm doing the copy in to the table in a
> transaction block with all constraints deferred. That should mean
> it's only at the commit stage that foreign key will be checked
> right?
>
I'm not really sure, maybe someone else can chime in.
But I can say that I imported about 38 million rows of similar size
(actually, a bit larger) using COPY in under an hour with 7.2RC3. I had
no indexes or references defined during the COPY. I never saw memory use
grow beyond about 10MB IIRC -- possibly in part because I forgot to
increase shared buffers beyond the default before I started.
FWIW, hardware was dual P3 833 (I think), with 2GB RAM, hardware
mirrored SCSI hard-drives, Red Hat 7.2.
Joe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mail@joeconway.com, nandrews@investsystems.co.uk, pgsql-general@postgresql.org
Subject: Re: COPY performance
In-Reply-To: <3CB884C6.2050307@joeconway.com>
References: <Pine.LNX.4.21.0204131959070.3278-100000@ponder.fairway2k.co.uk> <3CB884C6.2050307@joeconway.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox