Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T7Hk7-0005tM-B6; Fri, 31 Aug 2012 03:17:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T7Hk6-0003H4-3c; Fri, 31 Aug 2012 03:17:58 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q7V3Htsn027684; Thu, 30 Aug 2012 23:17:55 -0400 (EDT) From: Tom Lane To: Robert Haas cc: Bruce Momjian , Tatsuo Ishii , pgsql-performance@postgresql.org, pgsql-hackers@postgresql.org Subject: Re: [HACKERS] pg_dump and thousands of schemas In-reply-to: References: <20120529.185149.1127748531209576379.t-ishii@sraoss.co.jp> <12147.1338306742@sss.pgh.pa.us> <20120530.180620.600165924826262795.t-ishii@sraoss.co.jp> <20120531.092043.1953698679173443322.t-ishii@sraoss.co.jp> <20120830204433.GW8753@momjian.us> <1086.1346359916@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Thu, 30 Aug 2012 17:45:24 -0400" Date: Thu, 30 Aug 2012 23:17:55 -0400 Message-ID: <27683.1346383075@sss.pgh.pa.us> X-Pg-Spam-Score: -2.1 (--) X-Archive-Number: 201208/198 X-Sequence-Number: 47736 Robert Haas writes: > On Thu, Aug 30, 2012 at 4:51 PM, Tom Lane wrote: >> Bruce Momjian writes: >>> On Thu, May 31, 2012 at 09:20:43AM +0900, Tatsuo Ishii wrote: >>>> Ok, I modified the part of pg_dump where tremendous number of LOCK >>>> TABLE are issued. I replace them with single LOCK TABLE with multiple >>>> tables. With 100k tables LOCK statements took 13 minutes in total, now >>>> it only takes 3 seconds. Comments? >>> Was this applied? >> No, we fixed the server side instead. > But only for 9.2, right? So people running back branches are still screwed. Yeah, but they're screwed anyway, because there are a bunch of O(N^2) behaviors involved here, not all of which are masked by what Tatsuo-san suggested. Six months or a year from now, we might have enough confidence in that batch of 9.2 fixes to back-port them en masse. Don't want to do it today though. regards, tom lane