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 1ta2yt-00Fblm-Ae for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Jan 2025 01:23:04 +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 1ta2ys-0094Y0-GO for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Jan 2025 01:23:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ta2yr-0094Xs-8w for pgsql-hackers@lists.postgresql.org; Tue, 21 Jan 2025 01:23:02 +0000 Received: from fout-b1-smtp.messagingengine.com ([202.12.124.144]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ta2yn-000dAt-2y for pgsql-hackers@lists.postgresql.org; Tue, 21 Jan 2025 01:23:00 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.stl.internal (Postfix) with ESMTP id B0DD8114018A; Mon, 20 Jan 2025 20:22:55 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Mon, 20 Jan 2025 20:22:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1737422575; x=1737508975; bh=zfEk5Fo1v/ JTucc7pdafdgihNL4u/GXh6juCGOxT4dE=; b=iOveN4ntu9sRsqafIewtrmmiZ4 DPQv/98DX51kqNwCXZ9vZ4LgmkLNiKhmUkuf4QPSWGGB6nJIoz2eoTYE/AdV0yLD NrR8Zlp8VFFTVfyqd9qH/vRCh4f1KLjmO5b6phqmwNuOz3ELmWlGXh/JumpixVN5 OzHXGKZPDrqVIjdE8xowl+Oa2j1ltgDR7b3iDVeNDCDvh7W7SE7oe68u8kQcxymH o3kvgBIwHwviTA+8/53e/jkY8tzaCZTp13WXp2AoaduBtXqmtDJwno9kslxvzkgT nS8I+cPFWpkM8XcHdyk9dBptCjgMVUuZx7JtesoOsqYxvbIJrrOZU2TFyEOw== 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:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1737422575; x=1737508975; bh=zfEk5Fo1v/JTucc7pdafdgihNL4u/GXh6ju CGOxT4dE=; b=TWNtMfzCKXTeEQWj0VFrV9DOKcjqPBMP7EJm1YD1idgboXQLYxI rcCG0lEMX0F/STtqEsiky8mxzKmRRgks0rN8iDJQlDsNr5f0MyRsAQY4Bxt7LneG J30+8Z/k4gRsj0xLxNmEWH3H7VLXock+ppjUHQkkb1T+TXb8L+usXZKfFHGjpA5/ zDmvRZpl8G0jhLqQFgt4k3ln7qAEgTNzJmPvLCu8jDetdvgVlIXOR5Ct4bPuFXWj VbiMXwHDPkE1pGKjwB2DPpeDNPdP1mWeUvYpZocM39zoPfvgfdiLiJZXGbdogZ8H 8e+qa5vkWf7UzXNRQdq7pSQ/s7473Z0AF4Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudejtddgfeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefufhffjgfkfgggtgesmhdtreertderjeen ucfhrhhomhepffgrghhfihhnnhcukfhlmhgrrhhiucforghnnhhsnohkvghruceoihhlmh grrhhisehilhhmrghrihdrohhrgheqnecuggftrfgrthhtvghrnhepvddvhfehtdefkedu gfetudefhefggfegjeeijeehuefgteehgfegtdelgeetteejnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihhlmhgrrhhisehilhhmrghrihdr ohhrghdpnhgspghrtghpthhtohepjedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoh epvghulhgvrhdrthgrvhgvihhrrgesvghnthgvrhhprhhishgvuggsrdgtohhmpdhrtghp thhtohepphgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgpdhrtghpthhtohepphhgsh hqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghp thhtohepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidprhgtphhtthhopehsmhhith hhphgsvddvhedtsehgmhgrihhlrdgtohhmpdhrtghpthhtohepthhglhesshhsshdrphhg hhdrphgrrdhushdprhgtphhtthhopegvuhhlvghrsegvuhhlvghrthhordgtohhm X-ME-Proxy: Feedback-ID: i1ff147bf:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Jan 2025 20:22:54 -0500 (EST) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: "Euler Taveira" Cc: "Tom Lane" , "Peter Smith" , "Michael Paquier" , "PostgreSQL Hackers" , "Peter Eisentraut" , "Euler Taveira" Subject: Re: pg_createsubscriber TAP test wrapping makes command options hard to read. References: <556792.1733967676@sss.pgh.pa.us> <564915.1733971586@sss.pgh.pa.us> <87pllx5cqn.fsf@wibble.ilmari.org> <87msh159c3.fsf@wibble.ilmari.org> <87o70143p6.fsf@wibble.ilmari.org> <3b6b2595-9822-4e4f-91ee-b6a44dc4b542@app.fastmail.com> <3238498.1737413396@sss.pgh.pa.us> <0f90c5bd-e71f-49ec-ab80-ba2008be5c37@app.fastmail.com> Date: Tue, 21 Jan 2025 01:22:53 +0000 In-Reply-To: <0f90c5bd-e71f-49ec-ab80-ba2008be5c37@app.fastmail.com> (Euler Taveira's message of "Mon, 20 Jan 2025 20:15:54 -0300") Message-ID: <87ikq93qqa.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=-=-= Content-Type: text/plain "Euler Taveira" writes: > On Mon, Jan 20, 2025, at 7:49 PM, Tom Lane wrote: >> "Euler Taveira" writes: >> > It is kind of annoying to keep version 20230309 around to run perltidy. Do we >> > have any other alternatives? >> >> As it says in src/tools/pgindent/README: >> >> 2) Install perltidy. Please be sure it is version 20230309 (older and newer >> versions make different formatting choices, and we want consistency). >> >> I don't think anyone is especially wedded to 20230309 in particular, >> but we don't want different developers using different versions and >> coming out with different results. The whole point of this effort >> is to standardize code layout as best we can, so that would be >> counterproductive. > > I can live with that. > >> Do you have a strong argument for switching to some other specific >> version of perltidy? >> > > I don't. Let's see if the Dagfinn's patch will maintain more stable formatting > over the years. I tested in a previous version (20220613) after applying the > patch and it didn't suggest changes. More interesting than running older versions of perltidy would be running more recent ones. On top of the perltidy patch upthread, the current version (20250105) only wants to make a couple of changes to PostgreSQL::Test::Cluster (attached): 1. A slight change to the indentation of a multi-line ternary statement. I slightly prefer the old version, but the new one doesn't bother me either. 2. Ignoring the length of ## no critic comments when breaking lines, which is a definite improvement for the secondary `package` statements in the file. These changes came with Perl::Tidy 20230701, which is the very next version after the one we're currently using. Subsequent versions have caused no other changes, with or without my fat comma patch. All in all, this makes me +0.5 to bumping the required Perl::Tidy version, and +0.5 on (at least considering) bumping it to the latest version before the pre-release-branch pgperltidy run. - ilmari --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Run-pgperltidy-with-Perl-Tidy-20250105.patch.nocfbot From f6eb43ed13d3138c4cbde6bbdc2e17fd583aefa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dagfinn=20Ilmari=20Manns=C3=A5ker?= Date: Tue, 21 Jan 2025 00:54:37 +0000 Subject: [PATCH] Run pgperltidy with Perl::Tidy-20250105 --- src/test/perl/PostgreSQL/Test/Cluster.pm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/test/perl/PostgreSQL/Test/Cluster.pm b/src/test/perl/PostgreSQL/Test/Cluster.pm index f521ad0b12f..fbddc85c554 100644 --- a/src/test/perl/PostgreSQL/Test/Cluster.pm +++ b/src/test/perl/PostgreSQL/Test/Cluster.pm @@ -1826,8 +1826,8 @@ sub get_free_port { foreach my $addr (qw(127.0.0.1), ($use_tcp && $PostgreSQL::Test::Utils::windows_os) - ? qw(127.0.0.2 127.0.0.3 0.0.0.0) - : ()) + ? qw(127.0.0.2 127.0.0.3 0.0.0.0) + : ()) { if (!can_bind($addr, $port)) { @@ -3738,8 +3738,7 @@ sub advance_wal ########################################################################## -package PostgreSQL::Test::Cluster::V_11 - ; ## no critic (ProhibitMultiplePackages) +package PostgreSQL::Test::Cluster::V_11; ## no critic (ProhibitMultiplePackages) use parent -norequire, qw(PostgreSQL::Test::Cluster); @@ -3766,8 +3765,7 @@ sub init ########################################################################## -package PostgreSQL::Test::Cluster::V_10 - ; ## no critic (ProhibitMultiplePackages) +package PostgreSQL::Test::Cluster::V_10; ## no critic (ProhibitMultiplePackages) use parent -norequire, qw(PostgreSQL::Test::Cluster::V_11); -- 2.39.5 --=-=-=--