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 1pP9A4-0000r7-G2 for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Feb 2023 21:36:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pP9A3-0004bX-8s for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Feb 2023 21:36:27 +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 1pP9A2-0004bM-W2 for pgsql-hackers@lists.postgresql.org; Mon, 06 Feb 2023 21:36:26 +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 1pP99u-00025G-9N for pgsql-hackers@postgresql.org; Mon, 06 Feb 2023 21:36:23 +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 316La7VA2828976; Mon, 6 Feb 2023 16:36:07 -0500 From: Tom Lane To: Andres Freund cc: Peter Eisentraut , Noah Misch , Bruce Momjian , Jelte Fennema , 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: <20230206212157.axnz62oagvycvcjm@awork3.anarazel.de> References: <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> <764a8f96-58c3-361d-428f-7ef827d62023@enterprisedb.com> <20230206212157.axnz62oagvycvcjm@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 06 Feb 2023 13:21:57 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2828974.1675719367.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 06 Feb 2023 16:36:07 -0500 Message-ID: <2828975.1675719367@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > On 2023-02-06 18:17:02 +0100, Peter Eisentraut wrote: >> First, as a matter of principle, it would introduce another level of >> gatekeeping power. Right now, the committers are as a group in charge = of >> what gets into the tree. Adding commit hooks that are installed >> somewhere(?) by someone(?) and can only be seen by some(?) would upset = that. >> If we were using something like github or gitlab (not suggesting that, = but >> for illustration), then you could put this kind of thing under .github/= or >> similar and then it would be under the same control as the source code >> itself. > Well, we did talk about adding a pre-commit hook to the repository, with > instructions for how to enable it. And I don't see a problem with adding= the > pre-receive we're discussing here to src/tools/something. Yeah. I don't think we are seriously considering putting any restrictions in place on gitmaster --- the idea is to offer better tools to committers to let them check/fix the indentation of what they are working on. If somebody wants to run that as a local pre-commit hook, that's their choice= . regards, tom lane