Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 4D5612E35D1 for ; Tue, 5 Feb 2008 10:54:37 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 51086-04 for ; Tue, 5 Feb 2008 10:54:00 -0400 (AST) Received: from outmail128098.authsmtp.net (outmail128098.authsmtp.net [62.13.128.98]) by postgresql.org (Postfix) with ESMTP id 307722E3321 for ; Tue, 5 Feb 2008 10:54:17 -0400 (AST) Received: from outmail128181.authsmtp.net (outmail128181.authsmtp.net [62.13.128.181]) by punt4.authsmtp.com (8.14.1/8.14.1/Kp) with ESMTP id m15EqsVt085164; Tue, 5 Feb 2008 14:52:55 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 m15ErfLR050958; Tue, 5 Feb 2008 14:53:41 GMT Subject: Re: Benchmark Data requested From: Simon Riggs To: Richard Huxton Cc: Dimitri Fontaine , pgsql-performance@postgresql.org, "Jignesh K. Shah" , Greg Smith In-Reply-To: <47A87618.1090203@archonet.com> References: <1202150236.4252.521.camel@ebony.site> <47A797E5.4000507@sun.com> <200802051506.51581.dfontaine@hi-media.com> <1202221496.4252.680.camel@ebony.site> <47A87618.1090203@archonet.com> Content-Type: text/plain; charset=utf-8 Date: Tue, 05 Feb 2008 14:54:28 +0000 Message-Id: <1202223268.4252.707.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 8bit X-Server-Quench: 24244b13-d3fa-11dc-9554-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksacxtFaABba1xT HGQLW1xEUVl7XGB/ bwsfZQBDYEtPQQZr TkxLXVBXCwUmXB0E c1xILntycgVPfXY+ Z0ZqVz5ZWEZ+cRR8 QVMAFjtXeGZhPDMC 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/35 X-Sequence-Number: 28577 On Tue, 2008-02-05 at 14:43 +0000, Richard Huxton wrote: > Simon Riggs wrote: > > On Tue, 2008-02-05 at 15:06 +0100, Dimitri Fontaine wrote: > >> > >> Le lundi 04 février 2008, Jignesh K. Shah a écrit : > > >>> Multiple table loads ( 1 per table) spawned via script is bit better > >>> but hits wal problems. > >> pgloader will too hit the WAL problem, but it still may have its benefits, or > >> at least we will soon (you can already if you take it from CVS) be able to > >> measure if the parallel loading at the client side is a good idea perf. wise. > > > > Should be able to reduce lock contention, but not overall WAL volume. > > In the case of a bulk upload to an empty table (or partition?) could you > not optimise the WAL away? That is, shouldn't the WAL basically be a > simple transformation of the on-disk blocks? You'd have to explicitly > sync the file(s) for the table/indexes of course, and you'd need some > work-around for WAL shipping, but it might be worth it for you chaps > with large imports. Only by locking the table, which serializes access, which then slows you down or at least restricts other options. Plus if you use pg_loader then you'll find only the first few rows optimized and all the rest not. -- Simon Riggs 2ndQuadrant http://www.2ndQuadrant.com