Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1prZjr-0001O7-Sv for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Apr 2023 07:38:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1prZjq-00068m-Ld for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Apr 2023 07:38:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1prZjq-00067C-B7 for pgsql-hackers@lists.postgresql.org; Wed, 26 Apr 2023 07:38:54 +0000 Received: from new3-smtp.messagingengine.com ([66.111.4.229]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1prZjj-0058G5-EE for pgsql-hackers@postgresql.org; Wed, 26 Apr 2023 07:38:53 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id 0D64A58234B; Wed, 26 Apr 2023 03:38:46 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 26 Apr 2023 03:38:46 -0400 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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1682494726; x=1682501926; bh=p+C2ZKJ8zmvq6w8nx9mJ/Lpmvlt8hQJ6184 ZmnNDvV0=; b=XI+kxogKdvzOyto4itUBmPrQ1nWy0RfPlRFOr7qguvAs6hQLDei fD5l0Wroo7fj9mmPgHr4Lg6Lx6T+yOhH7Wmjc5siLqe0pea5cvVyzxGlSgFP+XyZ KdCnP94W1r6S6qIZpM8OGHpMaFgUM/dLecwg9jUsFHWpxejvtLuv7XlLrMcgQuuY j1Ft3rmsuJiyBCBYmDJP4q06fiFC/nrcGRRzcWkBlFEi/EUxmAcjkzhBHOMpT8du tjiZV60zW4cc6HxdRIHv96Zwu+HEqIjOxVvKEJYEKVJFdDCDt2CtB73Fr6eTgO4J bIzqorJuzgJbvZPX7roPT995od1ulrsdQPQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfedufedguddvhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgv thgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnh htvghrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepheelffeggedujeet iefhleetuddvieffhfffvdejvdffgeejkeduleduheduieefnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgr uhhtsegvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 26 Apr 2023 03:38:41 -0400 (EDT) Message-ID: Date: Wed, 26 Apr 2023 09:38:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: run pgindent on a regular basis / scripted manner Content-Language: en-US To: Tom Lane Cc: Jelte Fennema , Andrew Dunstan , "shiy.fnst@fujitsu.com" , Robert Haas , Justin Pryzby , Andres Freund , Noah Misch , Peter Geoghegan , Bruce Momjian , Magnus Hagander , Alvaro Herrera , Stephen Frost , Jesse Zhang , "pgsql-hackers@postgresql.org" References: <4ac8f263-f1bb-faa5-a307-1fffe00f0e3e@dunslane.net> <0f074818-b01a-799f-3c74-5fb5deab1d23@dunslane.net> <1d66447e-a77b-ca0d-90a0-782800e85383@dunslane.net> <3665234.1682174388@sss.pgh.pa.us> <3711455.1682193493@sss.pgh.pa.us> <3841176.1682262970@sss.pgh.pa.us> <183836.1682345671@sss.pgh.pa.us> From: Peter Eisentraut In-Reply-To: <183836.1682345671@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 24.04.23 16:14, Tom Lane wrote: > Peter Eisentraut writes: >> Does anyone find perltidy useful? To me, it functions more like a >> JavaScript compiler in that once you process the source code, it is no >> longer useful for manual editing. If we are going to have the buildfarm >> check indentation and that is going to be extended to Perl code, I have >> some concerns about that. > > I certainly don't like its current behavior where adding/changing one > line can have side-effects on nearby lines. But we have a proposal > to clean that up, and I'm cautiously optimistic that it'll be better > in future. Did you have other specific concerns? I think the worst is how it handles multi-line data structures like $newnode->command_ok( [ 'psql', '-X', '-v', 'ON_ERROR_STOP=1', '-c', $upcmds, '-d', $oldnode->connstr($updb), ], "ran version adaptation commands for database $updb"); or $node->command_fails_like( [ 'pg_basebackup', '-D', "$tempdir/backup", '--compress', $cft->[0] ], qr/$cfail/, 'client ' . $cft->[2]); Perhaps that is included in the upcoming changes you are referring to?