Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id E64B764FCF3 for ; Tue, 2 Sep 2008 09:29:14 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 52112-10 for ; Tue, 2 Sep 2008 09:29:06 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from ppsw-0.csi.cam.ac.uk (ppsw-0.csi.cam.ac.uk [131.111.8.130]) by postgresql.org (Postfix) with ESMTP id D518764FCEA for ; Tue, 2 Sep 2008 09:29:11 -0300 (ADT) X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from flymine.sysbiol.cam.ac.uk ([131.111.60.120]:46713 helo=flymine.flymine.org) by ppsw-0.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.130]:25) with esmtp id 1KaV0O-00061Y-1x (Exim 4.70) for pgsql-performance@postgresql.org (return-path ); Tue, 02 Sep 2008 13:29:08 +0100 Received: from host103 ([192.168.128.103] helo=aragorn.flymine.org ident=Debian-exim) by flymine.flymine.org with esmtp (Exim 4.12) id 1KaV0O-0003gn-00 for pgsql-performance@postgresql.org; Tue, 02 Sep 2008 13:29:08 +0100 Received: from mnw21 (helo=localhost) by aragorn.flymine.org with local-esmtp (Exim 4.69) (envelope-from ) id 1KaV0O-0007BY-Gs for pgsql-performance@postgresql.org; Tue, 02 Sep 2008 13:29:08 +0100 Date: Tue, 2 Sep 2008 13:29:08 +0100 (BST) From: Matthew Wakeling X-X-Sender: mnw21@aragorn.flymine.org To: pgsql-performance@postgresql.org Subject: Re: slow update of index during insert/copy In-Reply-To: Message-ID: References: <48BA9D65.2020001@ifi.uio.no> <48BB4A2D.9080404@postnewspapers.com.au> <48BBD22E.4090308@ifi.uio.no> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200809/34 X-Sequence-Number: 31347 On Mon, 1 Sep 2008, Scott Carey wrote: > Thanks for the info on the patch to support it -- however the versions > posted there are rather old... Over here, we're using an extremely old patched version of the JDBC driver. That's the patch I sent to some mailing list a couple of years ago. It works very well, but I would be very eager to see the COPY support make it to the mainstream driver with a consistent interface. > On the performance impact of using COPY instead of INSERT. Over here, we use the binary form of COPY, and it is *really* fast. It's quite easy to saturate the discs. Matthew -- Contrary to popular belief, Unix is user friendly. It just happens to be very selective about who its friends are. -- Kyle Hearn