Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 70B299FA1A1 for ; Sat, 28 Oct 2006 12:42:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 13271-07 for ; Sat, 28 Oct 2006 15:42:12 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from exprod6og56.obsmtp.com (exprod6og56.obsmtp.com [64.18.1.208]) by postgresql.org (Postfix) with SMTP id 5937D9FA086 for ; Sat, 28 Oct 2006 12:42:11 -0300 (ADT) Received: from source ([63.240.6.44]) by exprod6ob56.postini.com ([64.18.5.12]) with SMTP; Sat, 28 Oct 2006 08:42:05 PDT Received: from 172.16.1.25 by mail.mi8.com with ESMTP (- Welcome to Mi8 Corporation www.Mi8.com (D4)); Sat, 28 Oct 2006 11:41:56 -0400 X-Server-Uuid: C8FB4D43-1108-484A-A898-3CBCC7906230 Received: from MI8NYCMAIL06.Mi8.com ([172.16.1.175]) by D01HOST03.Mi8.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 28 Oct 2006 11:41:56 -0400 Received: from 69.181.100.71 ([69.181.100.71]) by MI8NYCMAIL06.Mi8.com ( [172.16.1.219]) via Exchange Front-End Server mi8owa.mi8.com ( [172.16.1.105]) with Microsoft Exchange Server HTTP-DAV ; Sat, 28 Oct 2006 15:41:56 +0000 User-Agent: Microsoft-Entourage/11.2.5.060620 Date: Sat, 28 Oct 2006 08:41:55 -0700 Subject: Re: Best COPY Performance From: "Luke Lonergan" To: "Michael Artz" cc: "Worky Workerson" , "Merlin Moncure" , pgsql-performance@postgresql.org Message-ID: Thread-Topic: [PERFORM] Best COPY Performance Thread-Index: Acb6p5hm1rBhSGaaEduGtgAWy4o9DA== In-Reply-To: MIME-Version: 1.0 X-OriginalArrivalTime: 28 Oct 2006 15:41:56.0397 (UTC) FILETIME=[993C0DD0:01C6FAA7] X-WSS-ID: 695DA5CE2TS5358312-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200610/595 X-Sequence-Number: 21724 Michael (aka Worky), On 10/28/06 5:03 AM, "Michael Artz" wrote: > PG 8.1.3 x86_64. I installed it via a RH rpm for their "Web Services > Beta", or something like that. I know I'm a bit behind the times, but > getting stuff in (and out) of my isolated lab is a bit of a pain. > I'll compile up a 8.2 beta as well and see how that works out. I think 8.1 and 8.2 should be the same in this regard. Maybe it is just the PK *build* that slows it down, but I just tried some small scale experiments on my MacBook Pro laptop (which has the same disk performance as your server) and I get only a 10-15% slowdown from having a PK on an integer column. The 10-15% slowdown was on 8.1.5 MPP, so it used both CPUs to build the index and load at about 15 MB/s. Note that the primary key is the first column. Table "public.part" Column | Type | Modifiers ---------------+-----------------------+----------- p_partkey | integer | not null p_name | character varying(55) | not null p_mfgr | text | not null p_brand | text | not null p_type | character varying(25) | not null p_size | integer | not null p_container | text | not null p_retailprice | double precision | not null p_comment | character varying(23) | not null Indexes: "part_pkey" PRIMARY KEY, btree (p_partkey) What is your schema for the table? - Luke