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 1tLaGg-00Fhov-IB for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Dec 2024 03:53:38 +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 1tLaGd-006SUm-PK for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Dec 2024 03:53:37 +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 1tLaGd-006SUe-F1 for pgsql-hackers@lists.postgresql.org; Thu, 12 Dec 2024 03:53:36 +0000 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tLaGY-002OSJ-1I for pgsql-hackers@lists.postgresql.org; Thu, 12 Dec 2024 03:53:35 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id 5DFCE114019C; Wed, 11 Dec 2024 22:53:29 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Wed, 11 Dec 2024 22:53:29 -0500 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:subject :subject:to:to; s=fm1; t=1733975609; x=1734062009; bh=QxQvzQTmJv /ohCPHVOKYVx42toLlAXSnAI3YGxNnxw0=; b=AOoEUl+vEp814mDYIPeXJYQJ0a HVS2zuwwefn1AySQxtv4WMEx6hMusezDfiRb/WTVK49+Wxiekf2hHWDwevNnSxax f6CzUqqtNd3Wg75JcKqaXEXzcVOIeKrKKkn5rJziAd6saamSR3gWVTXogIpfH68R oFpBs2NuNSMxCiO50wUfDc8ypbQE9PFSMw2VzQo30lSC2/NYYGDPE/ZW0XJFUQrf 5oZSYwTBxshwEr8sLz+qc3DSjIAI57ze1hDnlRptLVzwbZNh2rdpp1uuhN38J/vV q0cRLaCJIHT679V4VZFniJPYX079fVrOKLCpGDfhqnr7bJgUebZwvosvVdaA== 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=fm1; t= 1733975609; x=1734062009; bh=QxQvzQTmJv/ohCPHVOKYVx42toLlAXSnAI3 YGxNnxw0=; b=HrGHEfPmdmV/76dGLD1kpYCBNUjYDYgPxppmpfN6RLmziCBx1yw yZJWtnoKVt6Exr5snlajkrbsbqTjLuoNRXy21g8udVycbqGO2U9L6tXswwLrQQN8 Bcdexs/gq2Vwyf1EXy/09JZeKwQQk54ghw2vWNgrVT96RaTtw25GYi7oNWmpnb0W y4xKvfz1GuKsGqpsuptu4DwHkjLvm6/4T/mDT7hgR5RqeuJO0/EqKbVJacAfbDiT hwxNVbqbxFf+ZCKVaZMiHivRA/CLCaBean4o4embLsvloRmk2pvav3yecDrMAVwB wDzdbYq8uy7AsWDtI8lfTfb9EP/UewNy8yg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrkeefgddtkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenfghrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhgg tggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoe hmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleei fedufffhhfdtteelgeeggeffhfekueevteeigfduudevudetgfegiedvjeenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehp rghquhhivghrrdighiiipdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuth dprhgtphhtthhopehsmhhithhhphgsvddvhedtsehgmhgrihhlrdgtohhmpdhrtghpthht ohepthhglhesshhsshdrphhghhdrphgrrdhushdprhgtphhtthhopehpghhsqhhlqdhhrg gtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 11 Dec 2024 22:53:27 -0500 (EST) Date: Thu, 12 Dec 2024 12:53:13 +0900 From: Michael Paquier To: Peter Smith Cc: Tom Lane , PostgreSQL Hackers Subject: Re: pg_createsubscriber TAP test wrapping makes command options hard to read. Message-ID: References: <556792.1733967676@sss.pgh.pa.us> <564915.1733971586@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="p4cZmAoHW9x0JiSG" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --p4cZmAoHW9x0JiSG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Dec 12, 2024 at 02:13:40PM +1100, Peter Smith wrote: > TBH, I have no idea what logic perltidy uses. I did find some > configurations here [1] (are those what it pgperltidy uses?) but those > claim max line length is 78 which I didn't come anywhere near > exceeding. Gave up trying to understand its internals and its rules years ago. It's complicated enough that we require a specific version of the tool for the tree with a custom PATH :D > After some more experimentation, I've noticed that it is trying to > keep only 2 items on each line. So whether it looks good or not seems > to depend if there is an even or odd number of options without > arguments up-front. Maybe those perltidy "tightness" switches? Don't recall so even under Perl-Tidy-20230309, because it comes down to the number of elements in these arrays and the length of their values, not the specific values in each element of the array. > So, AFAICT I can workaround the perltidy wrapping just by putting all > the noarg options at the bottom of the command, then all the > option/optarg pairs (ie 2s) will stay together. I can post another > patch to do it this way unless you think it is too hacky. This trick works for me if that makes the long list of option easier to read. With two elements of the array perl line, I would just put some --dry-run or --verbose at the end of their respective arrays. -- Michael --p4cZmAoHW9x0JiSG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmdaXikACgkQnvQgOdby QH1w6A//U3QMFer2tLoReyEL4JD9V3o1yMSPdFylmIHIw87CB/mTkibKX8ZmCqqC ONJJxtB9iop+/Y2FApUbyjwdea44T4Teqd2qO/zIkhbYTDd9mBEltX/LEV9k0xEy +SZb10ix3AM2n40LiwewSymYrTVduyeH3D0u5YBVUBNDU59/QplJipfIFOiS+5Jh IQWvWYXnjEPJjE6boodMiOW6yePn72KRFV0cmTb03OqJaD9cy1osv9FuXDREmMpT sqmIA20nvICXz1PMzMgvWm3K9mftfQYBgJtwx1J2QZ97FDQjO4BgsOvT0Fy/9JW4 B4vpNhTtUGgRzXN2wOODGhQk0S/VTWAAAsmAOr1nCPmMSpIP7zncYxTDn4ULBUpP 0Xkgchzb8lfOAQugGK7T6M9MRMLOzcCfABUftyC+RHU6tcLQCIFG3xFVAi0pWfNG 1h0C6Jz44F9dgxiIWKWZPwU39wF8WUEQIyKTSRt4eiMBSr3Zcbgs6qWN1B3RlJHp 80lSe8//EqdyegwUDixDyaS3ofOaP43jdyMr5I6Hd5LRCdwrf2wdLsedHsdWzUrM w6jj8uriuaQ+C3MKAfJMB5LRfb1hLIyWoSj6DD3BMeTScoX/GxHdOnPENBDTeeVi pwwYY/IYy6YK0RIjh0XBSuHM2G2Jftl6DOFMBVtCiy4avYtvUpY= =tc0v -----END PGP SIGNATURE----- --p4cZmAoHW9x0JiSG--