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 1pNb5U-0007dG-GY for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Feb 2023 15:01:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pNb5S-0007oX-Fm for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Feb 2023 15:01:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pNb5S-0007no-6r for pgsql-hackers@lists.postgresql.org; Thu, 02 Feb 2023 15:01:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pNb5L-0008MH-Ni for pgsql-hackers@postgresql.org; Thu, 02 Feb 2023 15:01:17 +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 312F0wuh1534363; Thu, 2 Feb 2023 10:00:58 -0500 From: Tom Lane To: Andrew Dunstan cc: Noah Misch , Bruce Momjian , Jelte Fennema , Andres Freund , Peter Geoghegan , Magnus Hagander , Alvaro Herrera , Stephen Frost , Jesse Zhang , PostgreSQL-development Subject: Re: run pgindent on a regular basis / scripted manner In-reply-to: <1215f2de-3c49-eb3a-e62b-da1c05cb51db@dunslane.net> References: <20230123011002.fzcaa3krql3mqsfn@awork3.anarazel.de> <1509591.1674437376@sss.pgh.pa.us> <1608158.1674486546@sss.pgh.pa.us> <20230123173136.knn77pbuakhvjfgk@awork3.anarazel.de> <2238493.1674572097@sss.pgh.pa.us> <20230129010603.GA1677550@rfd.leadboat.com> <20230202062838.GA1832088@rfd.leadboat.com> <1477791.1675320029@sss.pgh.pa.us> <1215f2de-3c49-eb3a-e62b-da1c05cb51db@dunslane.net> Comments: In-reply-to Andrew Dunstan message dated "Thu, 02 Feb 2023 09:06:36 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1534361.1675350058.1@sss.pgh.pa.us> Date: Thu, 02 Feb 2023 10:00:58 -0500 Message-ID: <1534362.1675350058@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrew Dunstan writes: > Sure. There's probably some work that could still be done in this area > too, such as making pgperltidy work similarly to how we've now make > pgindent work. Perhaps. But before we commit to that, I'd like to see some tweaks to the pgperltidy rules to make it less eager to revisit the formatting of lines close to a change. Its current behavior will induce a lot of "git blame" noise if we apply these same procedures to Perl code. (Should I mention reformat-dat-files?) > There's also a question of timing. Possibly the best time would be when > we next fork the tree. Yeah. We have generally not wanted to do a mass indent except when there's a minimum amount of pending patches, ie after the last CF of a cycle. What I'd suggest is that we plan on doing a mass indent and then switch over to the new rules, right after the March CF closes. That gives us a couple months to nail down and test out the new procedures before they go live. regards, tom lane