Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyQZR-008P5J-W5 for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Nov 2023 05:48:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qyQZQ-00BHZs-Jc for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Nov 2023 05:48:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyQZQ-00BHZk-4Z for pgsql-hackers@lists.postgresql.org; Thu, 02 Nov 2023 05:48:44 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyQZJ-003Yja-7S for pgsql-hackers@lists.postgresql.org; Thu, 02 Nov 2023 05:48:42 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id A68985C00EC; Thu, 2 Nov 2023 01:48:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 02 Nov 2023 01:48:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1698904116; x=1698990516; bh=4n Wbuqoi7bWY0nqc5WV2KrOpfHeXxakEZxq9vUFGTew=; b=f6MgAVVODJO70AZ0r/ skIVWR9PYhAdDulvJTBS596gzxf8kmmTaJzZ/q4b9P374TniSiF68kTMncJkOjEL YUDT2dJolnQkR9o1yuioxT5Bbi5NqTQ2x/MiRjEvcwN+Tk0PbyX6vRCQd1We/FTG Tk14U+XcXhqRSc7weqQ/wykv9Kk7uyC/CSTinwEAcBPD8MOXI/szefuo/Nw3HxGV MC6dx6aJT/WX3rGGIC1GKpnVk4CN/AfT9i+wltIgMxTu7vK6GaSEyKb/mVgOmjsC DfNH7szeZYusZgMTRRV6qN8YJu2f4alHVGeq9yoiOU/4ub88+25ZtxVtLv2Ez9dZ c1Hg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1698904116; x=1698990516; bh=4nWbuqoi7bWY0 nqc5WV2KrOpfHeXxakEZxq9vUFGTew=; b=t0MSO/KsEo951D9iIqBRjd8IXVdM0 IiqJ2oqAFY7jLPySMjdWwac13bphbaGtjbDaXOvM/Qf61ahfL0PCrVsEH1z2llvx +SRysFOiuFIqdDvgeld3s/OuRD2m/4vltGHUOSqXTkgL6vx4XlDDh26Q+ioDBDCU cEXQAc6rOFcJRPZLhdMgYGBX+qjAou3GQXfvMsUFbV0cO6ktiujrF/oXh0MUpDiF xxftKjXI+A73u0T1PovIiEnO+UtUq8xiwy3K0FJ5/wY3K1AuJNbJJC55E7Gos7AC d5f9VEigIMesLZcDzvSsTtKwyq3alK+FkLjRmaIxbS62aZFUxE6LzpE9g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddthedgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepgeffjeevgfevuddvjedtvddt ieejheduueelvddufedtgfefjedvkeevkeeivddvnecuffhomhgrihhnpehpohhsthhgrh gvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Nov 2023 01:48:34 -0400 (EDT) Date: Thu, 2 Nov 2023 14:48:32 +0900 From: Michael Paquier To: Peter Smith Cc: vignesh C , Amit Kapila , "Hayato Kuroda (Fujitsu)" , Julien Rouhaud , PostgreSQL Hackers Subject: Re: pg_upgrade and logical replication Message-ID: References: <20230424072224.qd3awkfrjcanw2pa@jrouhaud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HLRn1Z8e0ukvn77a" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --HLRn1Z8e0ukvn77a Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Nov 02, 2023 at 04:35:26PM +1100, Peter Smith wrote: > The chance of being able to do so should be small as pg_upgrade uses its > own port and unix domain directory (customizable as well with > --socketdir), but just preventing the launcher to start is safer at the > end, because we are then sure that no changes would ever be applied. > ~ > "safer at the end" (??) Well, just safer. > 2a. > The comment is one big long sentence. IMO it will be better to break it up. > 2b. > Add a blank line between this comment note and the previous one. Yes, I found that equally confusing when looking at this patch, so I've edited the patch this way when I was looking at it today. This is enough to do the job, so I have applied it for now, before moving on with the second one of this thread. > 2c. > In a recent similar thread [1], they chose to implement a guc_hook to > prevent a user from overriding this via the command line option during > the upgrade. Shouldn't this patch do the same thing, for consistency? > 2d. > If you do implement such a guc_hook (per #2c above), then should the > patch also include a test case for getting an ERROR if the user tries > to override that GUC? Yeah, that may be something to do, but I am not sure that it is worth complicating the backend code for the remote case where one enforces an option while we are already setting a GUC in the upgrade path: https://www.postgresql.org/message-id/CAA4eK1Lh9J5VLypSQugkdD+H=_5-6p3rOocjo7JbTogcxA2hxg@mail.gmail.com That feels like a lot of extra facility for cases that should never happen. -- Michael --HLRn1Z8e0ukvn77a Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmVDODAACgkQnvQgOdby QH193RAApdDtb0F/3G5F2Xm7hDPOPAUT1ruKBA/miMDGzdz/8ZqisG6rIuNcNugH +E/rp8L+MekURrAc3vF0PTdX0vyas4I7lWXOsIMfYqvvsdZe6KXN/cWlHl1hkqwj 7FsYVnr2R+qnPgysV+v8TYjSs0neoxcDc4k5xM4OH3u+PRRHswshgya7kU8fbUPI y0Q1Bd8zZTk6eeCNSaYspnjsqwy25L5NKP0w9pxeOKMYh8327uSy//s3WKf39END ZHjR5XrS7U1jk2CjPhslpB2ABULqQf7a9r2SYvld9q6qoRf6BOqzaE0WLTqpR1sn cXmeTEufghzeOfeK+TSwBJgoQ1pPrDueS1u/Gg32r6lMIhp+Y54nLfzh4Ufqw986 HKAOYoU7N34xvvfoD9mw45DV6nyaqMpMXuuJgvMoFpEMVy7V1QizHtsFnXEpE6ur Iy/umn9XvhTv4S9O5AGODsGw8tDFQz1QO4lL8Mw24IZrBO8p5856q5p5uM6eJTes K8crEyu42KTrIPUpa+YosgtR4TEHDrUY/71DbwjYxkj2ip6KE1sgCH16m+Hc+at6 lu65GdCqqm4uJEzlrfDAIa+FtDBAIuLhH3QFiDPYRMsCxIkdVartvgPoy5PqZJ4j /eQcog1uEhRFBfxt6MlxJZHWe5TpzS25H+uyxQlv3CFF975C6bk= =6gV9 -----END PGP SIGNATURE----- --HLRn1Z8e0ukvn77a--