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 1tLmfc-00Gzbg-Me for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Dec 2024 17:08:13 +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 1tLmfZ-00Dagy-JS for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Dec 2024 17:08:10 +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 1tLmfY-00Dagq-IF for pgsql-hackers@lists.postgresql.org; Thu, 12 Dec 2024 17:08:10 +0000 Received: from fhigh-a2-smtp.messagingengine.com ([103.168.172.153]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tLmfW-002Tm6-5p for pgsql-hackers@lists.postgresql.org; Thu, 12 Dec 2024 17:08:08 +0000 Received: from phl-compute-07.internal (phl-compute-07.phl.internal [10.202.2.47]) by mailfhigh.phl.internal (Postfix) with ESMTP id 3A2DE11400AB; Thu, 12 Dec 2024 12:08:04 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-07.internal (MEProxy); Thu, 12 Dec 2024 12:08:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h=cc :cc:content-transfer-encoding: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=fm3; t=1734023284; x=1734109684; bh=a5jeLy94BW/x+jfdJP8PRL1vjk1Q9thBn+okH87DSeo=; b= Nhla79+jH4ziam0ihYvvNZk5JZ9dao3p/OxxTTfGhSw5ikpFPGGvw+SLKA2h2nxb RAEsIXCrGEwQaGmmYy4/vYihPAlPtCJOcO7QAK1w4rxc+SpR/Orox9u/2BovQhVh khtbSka4LKKxfj6WFUhnj1G+hd0BUY5B/VmPC8+H5lNO5DhEU+znIS0FzCgXC81a sJRsGPkT2ydkQb27y43H7FQrHIv5COEc/HQJ+gjlWTCFlnd7dN+zM3Qi7Sw0ZDxS Pr4PFpFctj69Lz6ShuL7uDQP7KPkHYPLBfRKMLWQ3YwrFF6wSjixxq0Ah8NCtVWT IO4a/PPcVieosFEhR/MH2A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=fm1; t=1734023284; x= 1734109684; bh=a5jeLy94BW/x+jfdJP8PRL1vjk1Q9thBn+okH87DSeo=; b=P Qx7RrUYPPjJAAk9FTVKUuyhLQNaVILD44l4OINZ19G/3r2oEqhmahKdnh7UN0Tl3 E1snLF43DwF54GalJ41CSBv8RyyuoX+jbB63yQ/wKN8lycDc9VxcGpTUQj2b89DH L55Wyo5ja6DcN+D/a7u4zGOOesW9tTLTHbDSXhH8cZvDiFfC7UzbJvcxroqwal+C SDCkJZ7KoZGx6PRvBh9iQqUjP/FURSnl39DQAs+rDMXh85rL7w2nMoVl0hyhtyYP QjxeK9lpFCMYL43KAPrxpbAZQtb7okUT7zhc3xQBiDe2C2rxI4PN35vuBF5eWNHY Aq1vMFS4mCclPBACLfNYw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrkeehgdelhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefhvfevufhfffgjkfgfgggtgfesthekredttderjeen ucfhrhhomhepffgrghhfihhnnhcukfhlmhgrrhhiucforghnnhhsnohkvghruceoihhlmh grrhhisehilhhmrghrihdrohhrgheqnecuggftrfgrthhtvghrnheptdejveeujeegjedv ffeuudejtefhhfehgfdthfeijeffkeevkefgtdffjefhtdeinecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihhlmhgrrhhisehilhhmrghrihdr ohhrghdpnhgspghrtghpthhtohephedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoh epphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg pdhrtghpthhtohepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidprhgtphhtthhope hsmhhithhhphgsvddvhedtsehgmhgrihhlrdgtohhmpdhrtghpthhtoheprghnughrvgif seguuhhnshhlrghnvgdrnhgvthdprhgtphhtthhopehtghhlsehsshhsrdhpghhhrdhprg druhhs X-ME-Proxy: Feedback-ID: i1ff147bf:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 12 Dec 2024 12:08:02 -0500 (EST) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: Tom Lane Cc: Andrew Dunstan , Peter Smith , Michael Paquier , PostgreSQL Hackers 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> <0f5256ec-d63e-4e0f-9b71-750a7a4e5c01@dunslane.net> <651128.1734017715@sss.pgh.pa.us> Date: Thu, 12 Dec 2024 17:08:01 +0000 In-Reply-To: <651128.1734017715@sss.pgh.pa.us> (Tom Lane's message of "Thu, 12 Dec 2024 10:35:15 -0500") Message-ID: <87jzc46d8u.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tom Lane writes: > Andrew Dunstan writes: >> On 2024-12-12 Th 8:17 AM, Dagfinn Ilmari Mannsåker wrote: >>> Here's a more thorough patch, that also applies the fat comma treatment >>> to other pg_createsubscriber invocations in the same file that don't >>> currently happen to be mangled by perltidy. It also adds trailing >>> commas to the last item in multi-line command arrays, which is common >>> perl style. > >> +1 for this approach. > > Indeed, this is much nicer if it's something perltidy knows about. > > However, I know we have the same issue in many other places. > Anyone feel like running through all the TAP scripts? I can have a go in the next few days. A quick grep spotted another workaround in 027_stream_regress.pl: using paretheses around the option and its value: command_ok( [ 'pg_dump', ('--schema', 'pg_catalog'), ('-f', $outputdir . '/catalogs_primary.dump'), '--no-sync', ('-p', $node_primary->port), '--no-unlogged-table-data', 'regression' ], 'dump catalogs of primary server'); I think the fat comma is much nicer than this, so I'd like to convert these too (and replace some of the concatenations with interpolation). Technically the quotes aren't necessary around single-dash options before => since unary minus works on strings as well as numbers, but I'll leave them in for consistency. - ilmari