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 1tLYCf-00FUp6-Uw for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Dec 2024 01:41:21 +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 1tLYCd-004zyM-EJ for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Dec 2024 01:41:20 +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 1tLYCd-004zyE-48 for pgsql-hackers@lists.postgresql.org; Thu, 12 Dec 2024 01:41:20 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tLYCb-002NPW-Jr for pgsql-hackers@lists.postgresql.org; Thu, 12 Dec 2024 01:41:19 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 4BC1fGcl556793; Wed, 11 Dec 2024 20:41:16 -0500 From: Tom Lane To: Peter Smith cc: PostgreSQL Hackers Subject: Re: pg_createsubscriber TAP test wrapping makes command options hard to read. In-reply-to: References: Comments: In-reply-to Peter Smith message dated "Thu, 12 Dec 2024 12:27:54 +1100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <556791.1733967676.1@sss.pgh.pa.us> Date: Wed, 11 Dec 2024 20:41:16 -0500 Message-ID: <556792.1733967676@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Smith writes: > While reviewing a patch for another pg_createsubscriber thread I found > that multiple TAP tests have a terrible wrapping where the command > options and their associated oparg are separated on different lines > instead of paired together nicely. This makes it unnecessarily > difficult to see what the test is doing. I think that is mostly the fault of pgperltidy. We did change the options we use with it awhile back, so maybe now it will honor your manual changes to its line-wrapping choices. But I wouldn't bet on that. Did you check what happens if you run the modified code through pgperltidy? (If the answer is bad, we could look into making further changes so that pgperltidy won't override these decisions. But there's no point in manually patching this if it'll just get undone.) regards, tom lane