Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id E70D82E3433 for ; Tue, 5 Feb 2008 13:34:45 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 90082-03 for ; Tue, 5 Feb 2008 13:34:44 -0400 (AST) Received: from outmail128083.authsmtp.net (outmail128083.authsmtp.net [62.13.128.83]) by postgresql.org (Postfix) with ESMTP id B31432E32DE for ; Tue, 5 Feb 2008 13:34:42 -0400 (AST) Received: from outmail128184.authsmtp.net (outmail128184.authsmtp.net [62.13.128.184]) by punt4.authsmtp.com (8.14.1/8.14.1/Kp) with ESMTP id m15HVmsv093949; Tue, 5 Feb 2008 17:33:21 GMT Received: from [192.168.0.3] (85-211-31-42.dyn.gotadsl.co.uk [85.211.31.42]) (authenticated bits=0) by mail.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id m15HVjNc097228; Tue, 5 Feb 2008 17:31:45 GMT Subject: Re: Benchmark Data requested From: Simon Riggs To: Dimitri Fontaine Cc: pgsql-performance@postgresql.org, "Jignesh K. Shah" , Greg Smith In-Reply-To: <200802051815.25800.dfontaine@hi-media.com> References: <1202150236.4252.521.camel@ebony.site> <200802051506.51581.dfontaine@hi-media.com> <1202221496.4252.680.camel@ebony.site> <200802051815.25800.dfontaine@hi-media.com> Content-Type: text/plain; charset=utf-8 Date: Tue, 05 Feb 2008 17:32:33 +0000 Message-Id: <1202232753.4252.789.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 8bit X-Server-Quench: 3936dc63-d410-11dc-9554-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksachtFaABba1xT HGQLW1xEUVp7WmJ/ bw8fZQBDYEtPQQZr TkxLXVBXCwUmXB0E fnhELEpyfgJEenY+ ZEBgXz5YVUd8IRV7 QVMAEWwGeGZhPDMC WUVdcx5UcAJLdhoR aVd4ByJDAzANdhEA MjUdGAoUCH11JSJe QgQEN1FabU8XF3Ym SgkfEC4zEEFt X-Authentic-SMTP: 61633235383639.squirrel.dmpriest.net.uk:787/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/48 X-Sequence-Number: 28590 On Tue, 2008-02-05 at 18:15 +0100, Dimitri Fontaine wrote: > Le mardi 05 février 2008, Simon Riggs a écrit : > > I'll look at COPY FROM internals to make this faster. I'm looking at > > this now to refresh my memory; I already had some plans on the shelf. > > Maybe stealing some ideas from pg_bulkload could somewhat help here? > http://pgfoundry.org/docman/view.php/1000261/456/20060709_pg_bulkload.pdf > IIRC it's mainly about how to optimize index updating while loading data, and > I've heard complaints on the line "this external tool has to know too much > about PostgreSQL internals to be trustworthy as non-core code"... so... Yeh, the batch index updates are a cool feature. Should be able to do that internally also. Not going to try the no-WAL route again though. If we can get it running efficiently and in parallel, then that will be OK. -- Simon Riggs 2ndQuadrant http://www.2ndQuadrant.com