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 1pOMTd-0003to-Ii for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Feb 2023 17:37:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pOMTc-0006Nt-Bi for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Feb 2023 17:37:24 +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 1pOMTc-0006Nj-2A for pgsql-hackers@lists.postgresql.org; Sat, 04 Feb 2023 17:37:24 +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 1pOMTZ-0002Mn-QU for pgsql-hackers@postgresql.org; Sat, 04 Feb 2023 17:37: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 314HbBFh2009473; Sat, 4 Feb 2023 12:37:11 -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: <20230204171101.GF1653@telsasoft.com> References: <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> <1923921.1675526879@sss.pgh.pa.us> <20230204171101.GF1653@telsasoft.com> Comments: In-reply-to Justin Pryzby message dated "Sat, 04 Feb 2023 11:11:01 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2009471.1675532231.1@sss.pgh.pa.us> Date: Sat, 04 Feb 2023 12:37:11 -0500 Message-ID: <2009472.1675532231@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Justin Pryzby writes: > Would you want to make those the default options of the in-tree indent ? > Or provide a shortcut like --postgresql ? Hmmm ... inserting all of those as the default options would likely make it impossible to update pg_bsd_indent itself with anything like its current indent style (not that it's terribly consistent about that). I could see inventing a --postgresql shortcut switch perhaps. But it's not clear to me why you're allergic to the perl wrapper? It's not like that's the only perl infrastructure in our build process. Also, whether or not we could push some of what it does into pg_bsd_indent proper, I can't see pushing all of it (for instance, the very PG-specific list of typedef exclusions). regards, tom lane