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 1goLda-00058y-K1 for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Jan 2019 05:08:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1goLdZ-00083f-7I for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Jan 2019 05:08:41 +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 1goLdY-0007yZ-Te for pgsql-hackers@lists.postgresql.org; Tue, 29 Jan 2019 05:08:41 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goLdW-00006c-Kp for pgsql-hackers@lists.postgresql.org; Tue, 29 Jan 2019 05:08:39 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id F0B642260D; Tue, 29 Jan 2019 00:08:37 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 29 Jan 2019 00:08:37 -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=pEJLx0hvzCamo6nbLmLFWncxxO/ eP3s1VBNyDZOo+zY=; b=nfLYHZVLTlNp2OHBqO/mnd0+veUdsm61GqRzxCaM4YK 30c0BXH8HerM0XIfZH+VsEhl57y3z7TiZTLFJ9KoHDRm9ZrT2JsDkzTGGBu5Z4EB rv91QeweQGL6ZfHQFp0LGJ3ymuUbibbCok/zMExWLWea5elz75Uk7bs0vHglEe9J XCZ9kvijCeScu7nMIivMsiBOJJYBwLswsVUnPrdbuPdzrgTtc3MOPn12ajU3UvQ+ pqV7GjI7FPdky0beZX30m22FDihbu0bWsVUNsh60EkdVlyDgatfc4Qj8vgTCVrO5 HtfUFVXjrqZecMoCKUaCBixH9VJ3KvZNsp/I4y78svQ== 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=pEJLx0 hvzCamo6nbLmLFWncxxO/eP3s1VBNyDZOo+zY=; b=tuoe76qhYHEyvnaRFMoGaJ TWV5sydj+K2FnaqdU7Kh1FhIvGqakT33+RsSBNm1bSVBpTkuhnMLWJ7/jBNUIl3E vKeHUaS4MKFz86QB09HZpubarVA9LXvYPodLuWs5XmlOZP+i2r6FgID7T/tgeKla f1B/yBDuRgPRIBLw4qvBV+vT8w7Vnr0uwSOMNDLmyogvFX4fBK+GDeXMbGJTTpT1 jDjSWoFHIx6bxRXshPylEQ8cWvNiKjIRqVC8rxUozhilNSbN2DVMcaMERKw3uVt0 Td287fC57IXmsjC488h67t0XWo3cXAYbDbZhcttJJQDIE/rhmbl+8kcx8Y/cR1Og == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrjedugdekudcutefuodetggdotefrodftvf 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 61D9810106; Tue, 29 Jan 2019 00:08:33 -0500 (EST) Date: Tue, 29 Jan 2019 14:08:30 +0900 From: Michael Paquier To: "Jamison, Kirk" Cc: "'jesper.pedersen@redhat.com'" , Peter Eisentraut , "fabriziomello@gmail.com" , Tom Lane , Alvaro Herrera , "pgsql-hackers@lists.postgresql.org" , Bruce Momjian Subject: Re: pg_upgrade: Pass -j down to vacuumdb Message-ID: <20190129050830.GE3121@paquier.xyz> References: <5b7d95ba-8920-357d-1ec6-1084ce34a9e6@redhat.com> <388de5bc-858b-4686-d2e5-d0b21981dd72@redhat.com> <4ce565f9-d21f-039f-8f5a-2e16e6aa1ae4@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="so9zsI5B81VjUb/o" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --so9zsI5B81VjUb/o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 29, 2019 at 12:35:30AM +0000, Jamison, Kirk wrote: > I just checked the patch. > As per advice, you removed the versioning and specified --jobs.=20 > The patch still applies, builds and passed the tests successfully. I would document the optional VACUUM_OPTS on the page of pg_upgrade. If Peter thinks it is fine to not do so, that's fine for me as well. It seems to me that the latest patch sent is incorrect for multiple reasons: 1) You still enforce -j to use the number of jobs that the caller of pg_upgrade provides, and we agreed that both things are separate concepts upthread, no? What has been suggested by Alvaro is to add a comment so as one can use VACUUM_OPTS with -j optionally, instead of suggesting a full-fledged vacuumdb command which depends on what pg_upgrade uses. So there is no actual need for the if/else complication business. 2) Perhaps we need to worry about the second vacuumdb --all command, which may want custom options, which are not necessarily the same as the options of the first command? I don't think we need to care as it applies only to an upgraded cluster using something older 8.4, just wondering.. -- Michael --so9zsI5B81VjUb/o Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlxP384ACgkQnvQgOdby QH0GcQ/+Iqzi2jBdFZAkbxAbVM/T20p842f1nVR9ntTxwygQPdLgdMIarG3ynapV Mdw455h3mYQelGZ+39WMZR7lb66INznaP4jxcHYoWnfPnyqHW4Hg7J4swCaZbRwG DCHHFQCeg1ySNE/fTsbJcraGisC9B3DPj+E/AYukcojYMSSwn5aIkj537rWqS+Xq JGhrTpx/m33L5wBENQekvFvhvYrAJV45G9IvhQ9UH7WKC83CtiNz5GNfb+UrtFtt l8ZKW0Ivmeto77KyKbR0VUqGglFFXOApHzMGU4S0yDFYrqvlx/WXJB5wsgvS4hmI gY5P2z37SU6FxWPvCzf5DrYp3hRSBBs2ZQFEwxq1M169dtNuMDA6hjMbDrPWQyvU zFdJZd740k8NKahqXxVfWlZCNCWmUUF7pRUDJ1KOt9mwl4rM92GMo7iHPLEls/zx 8ElH9SETJSRW/t1J4kVAjlxyvwMkhFdw5iGAiIMW+3in9juML8Y9Dw6Z3oW6NJ0y tvXlg5CJNZnjUVOYJRHNRhMFQINAxW36dThv4dePw4Te4ouZ+LxfqlIhW7qFHEmS GGksFG9U2gjfK5y4qfUjGgSVclBSzlOr4FjTprEph/WSkkX9IZZFlVKZA+425ClM zRTEqOB4K/nMNi/AMf3/5J8txlHc/Ox0Laq1S7saqs4upR2fW6o= =JaFb -----END PGP SIGNATURE----- --so9zsI5B81VjUb/o--