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 1pOL6Q-0008Dj-Ap for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Feb 2023 16:09:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pOL5Q-00011r-UL for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Feb 2023 16:08:20 +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 1pOL5Q-00011i-KU for pgsql-hackers@lists.postgresql.org; Sat, 04 Feb 2023 16:08:20 +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 1pOL5K-0008I2-96 for pgsql-hackers@postgresql.org; Sat, 04 Feb 2023 16:08: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 314G7xA11923922; Sat, 4 Feb 2023 11:08:00 -0500 From: Tom Lane To: Andres Freund cc: Noah Misch , Andrew Dunstan , Jelte Fennema , Peter Geoghegan , Bruce Momjian , Magnus Hagander , Alvaro Herrera , Stephen Frost , Jesse Zhang , PostgreSQL-development Subject: Re: run pgindent on a regular basis / scripted manner In-reply-to: <20230204113453.vmtnayjvhyg5qqqy@alap3.anarazel.de> References: <20230121224312.qmwpagrebidr6hi7@awork3.anarazel.de> <20230122094957.x542ojaqgi4lalq4@awork3.anarazel.de> <20230122223806.3sgew6qswhsczae7@awork3.anarazel.de> <1489276.1674427657@sss.pgh.pa.us> <1708030.1675446770@sss.pgh.pa.us> <20230204041848.GC1896331@rfd.leadboat.com> <20230204113453.vmtnayjvhyg5qqqy@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sat, 04 Feb 2023 03:34:53 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1923920.1675526879.1@sss.pgh.pa.us> Date: Sat, 04 Feb 2023 11:07:59 -0500 Message-ID: <1923921.1675526879@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > ISTM that we're closer to being able to enforce pgindent than > perltidy. At the same time, I think the issue of C code in HEAD not > being indented is more pressing - IME it's much more common to have to > touch a lot of C code than to have to touch a lot fo perl files. So > perhaps we should just start with being more stringent with C code, and > once we made perltidy less noisy, add that? Agreed, we should move more slowly with perltidy. Aside from the points you raise, I bet fewer committers have it installed at all. (I haven't forgotten that I'm on the hook to import pg_bsd_indent into our tree. Will get to that soon.) regards, tom lane