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 1pIvec-0007Xb-W3 for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Jan 2023 17:58:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pIveb-0000V9-Sc for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Jan 2023 17:58:17 +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 1pIvea-0000Um-7w for pgsql-hackers@lists.postgresql.org; Fri, 20 Jan 2023 17:58:17 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pIveX-0001kd-98 for pgsql-hackers@postgresql.org; Fri, 20 Jan 2023 17:58:15 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 9A6D85C013B; Fri, 20 Jan 2023 12:58:08 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 20 Jan 2023 12:58:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1674237488; x=1674323888; bh=YgVMZsQ7/p DmYx2iq8FlfnT/fK1xfAiLLxeNgxkaMug=; b=sob6CcDOPv3Jr0mR0Lzsr9qUnj 9oaBPb3+NyXZuEOcs/o7FCY05ScUGBwhXhfedduqr1IwlgCfXOz8rNEabuv83kzz h6oouQXlzeXvASi/KMIyUvxY79vYdsVorI7BhPsJPR/NdNsBFeUWiMMi74Z05TfI FiTFvinRvPRF1pSo30CxIy0zkj0pPOihO+hDj8h4ZiCJITG8ovcjK4R6jQi+0qyf 3zwJytSsLpmjMPus2eR5Fgeyy8tD6DXIrwXFOKfRgAB/M+PXKorLT24gqin1pGn7 1XcEEylLu/aF9bocP5sRdUdg0oGp99USQKpSc1xoym02YanJUouLyL+JoC4Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1674237488; x=1674323888; bh=YgVMZsQ7/pDmYx2iq8FlfnT/fK1x fAiLLxeNgxkaMug=; b=H3jw7uQoNgnPPUsEZfOxz9RUQyKzt7GLCBCjhd3TkhXG mv0ZvPa2mcPzYe7XHtGDALUhpBHJ3m4+NyYi7NyXSwDYdUkxRA7E8D1cMqNwIGdr lNQx950xmSlseJ+TJ1O7FCMLj8BTJAOPLbrYoTU1Sss4bewFfIXFVPlmAWnfMJqA SSCuyoB2n2xbg2Pbb/YsGukKoZP/VBWy3JpWaOCsLRzQQfndQu+S6UqsqBMPIFqS aHAzT+h9a2OGnwhUFoONfFhgZzUllIFAJeyUwa1WvUhW+Dc4xsF0VBbvQL68DNiG hP93Woi8U3A08kCqgSpFHoveVVxO79JJTUiAgVltig== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudduvddguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgu rhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtf frrghtthgvrhhnpedvffefvefhteevffegieetfefhtddvffejvefhueetgeeludehteev udeitedtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegrnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 20 Jan 2023 12:58:07 -0500 (EST) Date: Fri, 20 Jan 2023 09:58:06 -0800 From: Andres Freund To: Tom Lane Cc: Jelte Fennema , Magnus Hagander , Alvaro Herrera , Stephen Frost , Noah Misch , Jesse Zhang , PostgreSQL-development Subject: Re: run pgindent on a regular basis / scripted manner Message-ID: <20230120175806.iogdcra2xpmmh5de@awork3.anarazel.de> References: <20200814202651.GA31108@alvherre.pgsql> <531251.1674234545@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <531251.1674234545@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-01-20 12:09:05 -0500, Tom Lane wrote: > Jelte Fennema writes: > > To me a master branch that pgindent never complains about sounds > > amazing! And I personally think rejection of unindented pushes and > > cfbot complaining about unindented patches would be a very good thing, > > because that seems to be the only solution that could achieve that. > > The core problem here is that requiring that would translate to > requiring every code contributor to have a working copy of pg_bsd_indent. Wouldn't just every committer suffice? > Maybe that's not a huge lift, but it'd be YA obstacle to new contributors, > and we don't need any more of those. > > Yeah, if we switched to some other tool maybe we could reduce the size > of that problem. But as Bruce replied, we've not found another one that > (a) can be coaxed to make output comparable to what we're accustomed to > and (b) seems decently well maintained. One question around this is how much change we'd accept. clang-format for example is well maintained and can get somewhat close to our style - but there are things that can't easily be approximated. Greetings, Andres Freund