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 1gmyjX-0004Fe-Gp for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Jan 2019 10:29:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gmyjV-00056K-VS for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Jan 2019 10:29:09 +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 1gmyjV-00056D-ON for pgsql-hackers@lists.postgresql.org; Fri, 25 Jan 2019 10:29:09 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmyjT-0001hl-H8 for pgsql-hackers@lists.postgresql.org; Fri, 25 Jan 2019 10:29:09 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 1879A7D8; Fri, 25 Jan 2019 05:29:05 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 25 Jan 2019 05:29:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=OiZ5EMUFBEbcTDGnspixnCGVBTz c7ym9zxk8B+KvV5g=; b=yUY9sRyDkdjrHNQBwy0PhpFXOxMwFIziVZOmibk19WQ 0/eKgoeCaXqAB9YPs1g0uGUS0qHxfNkz3aJR+IzTid7IWCauMJLg6rxY266zCEZ9 TrSWtasyTTwHRgi6Oi5us9RTmn3XU6VRyRLEaA8PuxkemmmvDoFXM8nWCs+jHDUH qT1Eh8F7sbLZaWXggdqDljY/qOgra/5nZg+RNNwvRKA1T4Nvf/c2i9L7qz+PpBLG rpcZVhQ3gt//rBEr0iU4Ut59I1e+ByxfHnBJpto69yk9Wn/M8KZNbJ7KS7S7nlpH e+J+dMXyq+LBCI/JuMS0BlUZMBeM/ZuMXYK1nJTXbyA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=OiZ5EM UFBEbcTDGnspixnCGVBTzc7ym9zxk8B+KvV5g=; b=jOYLVqPcfdNGzOVEYOKz6/ L0UrvvZKRsE010z4cFq0tEE0qFaAv3MDI8J6vmm4jxVkwIONOq2S5iaPlicYXON1 n6CznuvCqyXhAtdbvVNRDxj1le58u3MilMWRIhSbNM1A8vMm1k2pfY1niiCMw2ji oLVaMUAOXw7Mn5OuljNkPXmQpNO1T0B1PI3VZ4bllgDy+66sFR8CcqeQenwAZcb8 XH8m3WVoRJEmi/LxGf06F8fFli62tocb3bLldKmdt0EDxShW8Km8yFnveC8bKS6y 6OL98Qh/tUbj0zaozas0ZGP7BBWNFNhk+gsaPEFkym0cGsuC8URU/c9FNZyFtSWQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrieeggdduhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecufedt tdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdljedtmd enucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghh rggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenuc fkphepiedurddvudehrddufeejrdduiedvnecurfgrrhgrmhepmhgrihhlfhhrohhmpehm ihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id CB6ACE4068; Fri, 25 Jan 2019 05:29:01 -0500 (EST) Date: Fri, 25 Jan 2019 19:28:59 +0900 From: Michael Paquier To: "Jamison, Kirk" Cc: "'jesper.pedersen@redhat.com'" , Peter Eisentraut , "pgsql-hackers@lists.postgresql.org" , Bruce Momjian Subject: Re: pg_upgrade: Pass -j down to vacuumdb Message-ID: <20190125102859.GD6459@paquier.xyz> References: <11b6b108-6ac0-79a6-785a-f13dfe60ab92@redhat.com> <2dc5eaeb-e60d-2a16-696e-7b4d3d3548cb@redhat.com> <59f9323a-fee8-88f6-16ab-2319149b00be@2ndquadrant.com> <5b7d95ba-8920-357d-1ec6-1084ce34a9e6@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LSp5EJdfMPwZcMS1" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --LSp5EJdfMPwZcMS1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jan 25, 2019 at 02:31:57AM +0000, Jamison, Kirk wrote: > I'm not sure if I have understood the argument raised by Peter > correctly. Quoting Peter, "it's not clear that pg_upgrade and > vacuumdb are bound the same way, so it's not a given that the same > -j number should be used." I think it's whether the # jobs for > pg_upgrade is used the same way for parallel vacuum. vacuumdb and pg_upgrade are designed for different purposes and have different properties, hence using a value of -j for one does not necessarily mean that the same value should be used for the other. An ANALYZE is nice because it is non-intrusive for a live production system, and if you begin to pass down a -j argument you may finish by eating more resources that would have been necessary for the same job. For some users perhaps that matters, for some it does not. So based on that linking the value used by pg_upgrade and vacuumdb is a bad concept in my opinion, and the patch should be rejected. More documentation on pg_upgrade side to explain that a bit better could be a good idea though, as it is perfectly possible to use your own post-upgrade script or rewrite partially the generated one. -- Michael --LSp5EJdfMPwZcMS1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlxK5OsACgkQnvQgOdby QH366hAAhOdvSIeI/ZOjwPfqlpD76oHyLhoUj1p4sfU2KnrcoQleRVFUAuxDr02a O4g3gtPEYYGAxpjdxm0VSEgwiJgPvK4rvDcMHhX06hBAOY3LdL4JXby/j83tuJwy UHR7+ZjxZYrtfOVSdHNDin6MurwJ1sisg5+4dD8WuiB27opryEBSq+ENxbQfD5ys dOfqEIU4BT82G5PxhpE/8wMPNRMkAJ9OJ/9prvqzmDMKSLioMrJ487kajszdLddL fsl3XJxSO+YIESmszy6vCQqx+poGgNRuQVf+1H20sINrZhpOirUgPk42IvBp6yy7 7gLgMf0bKW/W+dvLlC++qQq0iNbp0bdsVaMa8JwfzLVA7YIZzjKjy/7KH9sahWii kYaaWadIpWo4wQ+3vN+iczu2sCbVatziTgg6vwTusrYnuVA9ZIuD79rEX3RCMxKq hI+qFwakaPRT2RwVKo40gcMezg/cT0d2Ny8j7yKYpqVESZXmdGYgqH1u420fWx9X pAHCQrZwo+L44BkoJibhCRrlxs6tOnt5zxTyFQgGvitwGHrCTqsbekIxM45RcUfY H1X9s39ocdjvehTCUhcyQdLwbXnirGGBTZbrC9mCnu3kZk3X3PNOivzV4N7Ddrpy bJSezw3AJ54QYKIrrfjdqwCus8U4v8GcAnEceWk+xNfnc1+p8u0= =DC/H -----END PGP SIGNATURE----- --LSp5EJdfMPwZcMS1--