Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id DDBBF650415 for ; Sat, 26 Jul 2008 13:56:37 -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 20710-02-4 for ; Sat, 26 Jul 2008 13:56:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mk-outboundfilter-3.mail.uk.tiscali.com (mk-outboundfilter-3.mail.uk.tiscali.com [212.74.114.23]) by postgresql.org (Postfix) with ESMTP id 6B3E1650457 for ; Sat, 26 Jul 2008 13:50:09 -0300 (ADT) X-Trace: 149559072/mk-outboundfilter-1.mail.uk.tiscali.com/F2S/$F2S-NILDRAM-ACCEPTED/f2s-temporary-group/85.211.229.155 X-SBRS: None X-RemoteIP: 85.211.229.155 X-IP-MAIL-FROM: simon@2ndquadrant.com X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq8AAJfyikhV0+Wb/2dsb2JhbAAIrnU X-IronPort-AV: E=Sophos;i="4.31,255,1215385200"; d="scan'208";a="149559072" X-IP-Direction: IN Received: from 85-211-229-155.dyn.gotadsl.co.uk (HELO [192.168.0.3]) ([85.211.229.155]) by smtp.f2s.tiscali.co.uk with ESMTP; 26 Jul 2008 17:50:07 +0100 Subject: Re: pg_dump additional options for performance From: Simon Riggs To: Tom Lane Cc: Stephen Frost , pgsql-patches@postgresql.org In-Reply-To: <23540.1217089204@sss.pgh.pa.us> References: <20080720214335.GB18846@tamriel.snowman.net> <1216591180.19656.848.camel@ebony.2ndQuadrant> <20080721011829.GC18846@tamriel.snowman.net> <20080721014942.GC30869@sonic.net> <20080721015850.GD18846@tamriel.snowman.net> <18415.1216611275@sss.pgh.pa.us> <1216621040.19656.867.camel@ebony.2ndQuadrant> <20080721115602.GG18846@tamriel.snowman.net> <1216831237.3894.676.camel@ebony.2ndQuadrant> <1216832987.3894.678.camel@ebony.2ndQuadrant> <20080724032047.GI18846@tamriel.snowman.net> <1216885031.3894.739.camel@ebony.2ndQuadrant> <21687.1216886041@sss.pgh.pa.us> <1216889809.3894.747.camel@ebony.2ndQuadrant> <2818.1217027784@sss.pgh.pa.us> <1217063104.3894.1100.camel@ebony.2ndQuadrant> <23540.1217089204@sss.pgh.pa.us> Content-Type: text/plain Date: Sat, 26 Jul 2008 17:56:42 +0100 Message-Id: <1217091402.3894.1185.camel@ebony.2ndQuadrant> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200807/259 X-Sequence-Number: 6953 On Sat, 2008-07-26 at 12:20 -0400, Tom Lane wrote: > Simon Riggs writes: > > On Fri, 2008-07-25 at 19:16 -0400, Tom Lane wrote: > >> The key problem is that pg_restore is broken: > > > The key capability here is being able to split the dump into multiple > > pieces. The equivalent capability on restore is *not* required, because > > once the dump has been split the restore never needs to be. > > This argument is nonsense. > The typical usage of this capability, IMHO, will be Arghh! That's not my stated use case!?#*! I want to dump tables separately for performance reasons. There are documented tests showing 100% gains using this method. There is no gain adding this to pg_restore. There is a gain to be had - parallelising index creation, but this patch doesn't provide parallelisation. Anyway, clearly time for me to stop and have a break. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Training, Services and Support