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 1pPQBf-0002yD-Mn for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Feb 2023 15:47:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pPQBe-0000qc-HA for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Feb 2023 15:47:14 +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 1pPQBe-0000qK-7z for pgsql-hackers@lists.postgresql.org; Tue, 07 Feb 2023 15:47:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pPQBc-0002ZX-3r for pgsql-hackers@postgresql.org; Tue, 07 Feb 2023 15:47:13 +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 317Fk1FB3086191; Tue, 7 Feb 2023 10:46:01 -0500 From: Tom Lane To: Justin Pryzby cc: Andres Freund , Noah Misch , Andrew Dunstan , Jelte Fennema , Peter Geoghegan , Bruce Momjian , Magnus Hagander , Alvaro Herrera , Stephen Frost , Jesse Zhang , pgsql-hackers@postgresql.org Subject: Re: run pgindent on a regular basis / scripted manner In-reply-to: <20230207152542.GH1653@telsasoft.com> References: <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> <1923921.1675526879@sss.pgh.pa.us> <20230204171101.GF1653@telsasoft.com> <2009472.1675532231@sss.pgh.pa.us> <20230207152542.GH1653@telsasoft.com> Comments: In-reply-to Justin Pryzby message dated "Tue, 07 Feb 2023 09:25:42 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3086189.1675784761.1@sss.pgh.pa.us> Date: Tue, 07 Feb 2023 10:46:01 -0500 Message-ID: <3086190.1675784761@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Justin Pryzby writes: > On Sat, Feb 04, 2023 at 12:37:11PM -0500, Tom Lane wrote: >> But it's not clear to me why you're allergic to the perl wrapper? > My allergy is to the totality of the process, not to the perl component. > It's a bit weird to enforce a coding style that no upstream indent tool > supports. But what's weirder is that, *having forked the indent tool*, > it still doesn't implement the desired style, and the perl wrapper tries > to work around that. > It would be more reasonable if the forked C program knew how to handle > the stuff for which the perl script currently has kludges to munge the > source code before indenting and then un-munging afterwards. [ shrug... ] If you want to put cycles into that, nobody is stopping you. For me, it sounds like make-work. regards, tom lane