Received: from joeconway.com (unknown [63.210.180.150]) by postgresql.org (Postfix) with ESMTP id 88621475B02 for ; Sat, 13 Apr 2002 15:19:20 -0400 (EDT) Received: from [192.168.5.2] (account jconway HELO joeconway.com) by joeconway.com (CommuniGate Pro SMTP 3.5.6) with ESMTP-TLS id 328857; Sat, 13 Apr 2002 11:11:45 -0800 Message-ID: <3CB884C6.2050307@joeconway.com> Date: Sat, 13 Apr 2002 12:19:34 -0700 From: Joe Conway User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9) Gecko/20020311 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Nigel J. Andrews" Cc: pgsql-general Subject: Re: COPY performance References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200204/536 X-Sequence-Number: 23251 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