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 1hCtOA-0003bc-Af for pgsql-general@arkaria.postgresql.org; Sat, 06 Apr 2019 22:02:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hCtO7-00048o-QR for pgsql-general@arkaria.postgresql.org; Sat, 06 Apr 2019 22:02:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hCtO7-00048h-E0 for pgsql-general@lists.postgresql.org; Sat, 06 Apr 2019 22:02:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hCtO5-0004F8-1g for pgsql-general@lists.postgresql.org; Sat, 06 Apr 2019 22:02:10 +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 x36M25CL016145; Sat, 6 Apr 2019 18:02:05 -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> Comments: In-reply-to senor message dated "Sat, 06 Apr 2019 21:26:46 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16143.1554588125.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 06 Apr 2019 18:02:05 -0400 Message-ID: <16144.1554588125@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk senor writes: > Since pg_upgrade is in control of how it is calling pg_dump, is there a = reason pg_upgrade cannot use the directory output format when calling pg_d= ump? Is the schema-only operation incompatible? Well, there's no point in it. pg_dump can only parallelize data dumping, and there's none to be done in the --schema-only case that pg_upgrade uses. Also, since pg_upgrade *does* use parallelism across multiple pg_dump calls (if you've got multiple databases in the cluster), it'd be a bit problematic to have another layer of parallelism below that, if it did indeed do anything. You don't want "--jobs=3D10" to suddenly turn into 100 sessions. regards, tom lane