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 1pJKy1-0005aJ-7e for pgsql-hackers@arkaria.postgresql.org; Sat, 21 Jan 2023 21:00:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pJKxz-0007LQ-OG for pgsql-hackers@arkaria.postgresql.org; Sat, 21 Jan 2023 20:59:59 +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 1pJKxz-0007LG-FP for pgsql-hackers@lists.postgresql.org; Sat, 21 Jan 2023 20:59:59 +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 1pJKxx-000710-73 for pgsql-hackers@postgresql.org; Sat, 21 Jan 2023 20:59:58 +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 30LKxj6h1097306; Sat, 21 Jan 2023 15:59:45 -0500 From: Tom Lane To: Peter Geoghegan cc: Bruce Momjian , Jelte Fennema , Magnus Hagander , Alvaro Herrera , Stephen Frost , Noah Misch , Jesse Zhang , Andres Freund , PostgreSQL-development Subject: Re: run pgindent on a regular basis / scripted manner In-reply-to: References: <20200814202651.GA31108@alvherre.pgsql> Comments: In-reply-to Peter Geoghegan message dated "Sat, 21 Jan 2023 12:21:03 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1097304.1674334785.1@sss.pgh.pa.us> Date: Sat, 21 Jan 2023 15:59:45 -0500 Message-ID: <1097305.1674334785@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Geoghegan writes: > In practice this approach tends to run into problems when the relevant > AST isn't available. For example, if there's code that only builds on > Windows, maybe it won't work at all (at least on my Linux system). Hmm, that could be a deal-breaker. It's not going to be acceptable to have to pgindent different parts of the system on different platforms ... at least not unless we can segregate them on the file level, and even that would have a large PITA factor. Still, we won't know unless someone makes a serious experiment with it. regards, tom lane