Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hCv5Y-0007p4-VA for pgsql-general@arkaria.postgresql.org; Sat, 06 Apr 2019 23:51:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hCv5V-0003rS-Ff for pgsql-general@arkaria.postgresql.org; Sat, 06 Apr 2019 23:51:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hCv5V-0003pE-5Z for pgsql-general@lists.postgresql.org; Sat, 06 Apr 2019 23:51:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hCv5T-0000Ah-1H for pgsql-general@lists.postgresql.org; Sat, 06 Apr 2019 23:51:04 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x36Now0i020139; Sat, 6 Apr 2019 19:50:58 -0400 From: Tom Lane To: senor cc: "pgsql-general@lists.postgresql.org" Subject: Re: pg_upgrade --jobs In-reply-to: References: ,<1c0469fb-1878-35ac-8468-78ce47299638@aklaver.com> ,<16144.1554588125@sss.pgh.pa.us> Comments: In-reply-to senor message dated "Sat, 06 Apr 2019 23:38:26 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20137.1554594658.1@sss.pgh.pa.us> Date: Sat, 06 Apr 2019 19:50:58 -0400 Message-ID: <20138.1554594658@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk senor writes: > Is the limitation simply the state of development to date or is there > something about dumping the schemas that conflicts with paralleling? At minimum, it'd take a complete redesign of pg_dump's output format, and I'm not even very sure what such a redesign would look like. All the schema information goes into a single file that has to be written serially. Trying to make it be one file per table definition wouldn't really fix much: somewhere there has to be a "table of contents", plus where are you going to put the dependency info that shows what ordering is required for restore? > The --link option to pg_upgrade would be so much more useful if it > weren't still bound to serially dumping the schemas of half a million > tables. To be perfectly blunt, if you've got a database with half a million tables, You're Doing It Wrong. regards, tom lane