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 1k6JCO-00020s-Rk for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Aug 2020 19:47:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k6JCM-0003cV-NN for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Aug 2020 19:47:38 +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 1k6JCM-0003cM-GM for pgsql-hackers@lists.postgresql.org; Thu, 13 Aug 2020 19:47:38 +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 1k6JCF-0001hq-Rz for pgsql-hackers@postgresql.org; Thu, 13 Aug 2020 19:47:37 +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 07DJlS59502546; Thu, 13 Aug 2020 15:47:28 -0400 From: Tom Lane To: Robert Haas cc: Jesse Zhang , Andres Freund , PostgreSQL-development Subject: Re: run pgindent on a regular basis / scripted manner In-reply-to: References: <20200812223409.6di3y2qsnvynao7a@alap3.anarazel.de> <328084.1597276021@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Thu, 13 Aug 2020 15:36:01 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <502544.1597348048.1@sss.pgh.pa.us> Date: Thu, 13 Aug 2020 15:47:28 -0400 Message-ID: <502545.1597348048@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Robert Haas writes: > I am not sure whether weekly or after-every-commit pgindent runs is a > good idea, but I think we should try to do it once a month or so. It's > too annoying otherwise. I could go either way on the question of > automation. The traditional reason for not doing pgindent too often has been that it'd cause more work for people who have to rebase their patches over pgindent's results. If we want to do it more often, then in order to respond to that concern, I think we need to do it really often --- not necessarily quite continuously, but often enough that pgindent is only changing recently-committed code. In this way, it'd be likely that anyone with a patch touching that same code would only need to rebase once not twice. The approaches involving an automated run give a guarantee of that, otherwise we don't have a guarantee; but as long as it's not many days delay I think it wouldn't be bad. Intervals on the order of a month seem likely to be the worst of both worlds from this standpoint --- too long for people to wait before rebasing their patch, yet short enough that they'd have to do so repeatedly. regards, tom lane