X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id E0EC9D1CAE1 for ; Fri, 6 Feb 2004 02:47:49 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 00264-01 for ; Thu, 5 Feb 2004 22:47:51 -0400 (AST) Received: from houston.familyhealth.com.au (fhnet.arach.net.au [203.22.197.21]) by svr1.postgresql.org (Postfix) with ESMTP id E1867D1B917 for ; Thu, 5 Feb 2004 22:47:46 -0400 (AST) Received: from familyhealth.com.au (work-40.internal [192.168.0.40]) by houston.familyhealth.com.au (8.12.9p1/8.12.9) with ESMTP id i162lm2m016778; Fri, 6 Feb 2004 10:47:48 +0800 (WST) (envelope-from chriskl@familyhealth.com.au) Message-ID: <402301D4.8030604@familyhealth.com.au> Date: Fri, 06 Feb 2004 10:54:12 +0800 From: Christopher Kings-Lynne User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Slavisa Garic Cc: pgsql-performance@postgresql.org Subject: Re: COPY with INDEXES question References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/82 X-Sequence-Number: 5606 > I have a quick question. In order to speed up insertion of large number of > rows (100s of thousands) I replaced the INSERT with the COPY. This works > fine but one question popped into my mind. Does copy updates indexes on > that table if there are some defined? Yes, of course. Runs triggers and stuff as well. Chris