Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qUbQr-00DTz8-0q for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Aug 2023 23:20:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qUbQp-00CNy8-DF for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Aug 2023 23:20:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qUbQn-00CNxF-Ry for pgsql-hackers@lists.postgresql.org; Fri, 11 Aug 2023 23:20:35 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qUbQk-001sJY-Vi for pgsql-hackers@postgresql.org; Fri, 11 Aug 2023 23:20:33 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 921323200916; Fri, 11 Aug 2023 19:20:27 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 11 Aug 2023 19:20:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-transfer-encoding:content-type: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= 1691796027; x=1691882427; bh=aZsh9l0ZYkz+GoaWwGGzS9G/XMaoyYqQR5W IadvWERc=; b=sZz6eCR/5skaytPh8QLGaLVaL0bCZxKX87js+/mk474qTYeVVoL Q1/CinfQWkV1Yg4FL+SbOpEUmwgDN/zYq4uEH7jrkto1wUOnyU+EM3IT/szAmRWq jc/yijZUussDUA2swWXNSQXrpPP/UucPRhJpNbhSSKidNMD7mP/oLHYX+sm8XT9A 0q4u6O62zXA1DN/iosHne0nDRoXsO2WOn4/SrHLt352XXi8dGe5GiByRxA2J+0Zn 3xSYmeHm4xRfIlEfgYd5EGcpW2z821nR+ew5yot55oTCyfjO/VLDLq2xQQMHkO46 Cgna4UVDXHrNlWb7CNfgRuCNIAP3LrfH6OQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type: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= 1691796027; x=1691882427; bh=aZsh9l0ZYkz+GoaWwGGzS9G/XMaoyYqQR5W IadvWERc=; b=YDEVXfHW/BEDJidgZgUlkp9ryEKpAEILvduhct22ye9kWerA8ES YC2mOsVut3rc1+KWSZ0dsw3EY5i+v4aq7Eb0fAUEN2wEXw3I6PkTu2+rmtbqTX7t YqsL5VIQrtRrGA0X4ysHWf69rjYDZwG3zExMENko5h3pmwGS8vjEkn8G1QnvZz30 00oEJVB2z0pjbWLMVPOT3JF9MKU0D0wiXvg0yh1sO6LONHMn58zejl+y+hN8hoL8 wObpE1VmZg2BFItIPcS0eVOvA+g/+NyBLaDle4uJnM0u1rBbVNpI3v3tfGSr7NOp kBwOsz7X3kkRplLn18s2WGE/i1xKvnlrm8A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrleelgddvtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtugfgjgesthekredttddtjeenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhephfeitefgleevtedtffejvedujeekjedugfdtveffjeelvddtfeekgefg jefhgfegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 11 Aug 2023 19:20:25 -0400 (EDT) Date: Fri, 11 Aug 2023 16:20:24 -0700 From: Andres Freund To: Tom Lane Cc: Peter Geoghegan , Andrew Dunstan , Jelte Fennema , Michael Paquier , "shiy.fnst@fujitsu.com" , Robert Haas , Justin Pryzby , Noah Misch , Bruce Momjian , Magnus Hagander , Alvaro Herrera , Stephen Frost , Jesse Zhang , "pgsql-hackers@postgresql.org" , Peter Eisentraut Subject: Re: run pgindent on a regular basis / scripted manner Message-ID: <20230811232024.4prbiiklqwcclgnw@awork3.anarazel.de> References: <582c503b-cd98-1891-ff87-9c8e8ce73ee5@dunslane.net> <30a72ba4-9ca4-15b5-db0f-0e68cba7ab26@dunslane.net> <1f594a4b-14c8-e159-b250-edf8a091320d@dunslane.net> <20230811212511.aih23qfthi24zhq4@awork3.anarazel.de> <338202.1691793002@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <338202.1691793002@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-08-11 18:30:02 -0400, Tom Lane wrote: > Peter Geoghegan writes: > > On Fri, Aug 11, 2023 at 2:25 PM Andres Freund wrote: > >> We could a test that fails when there's some mis-indented code. That seems > >> like it might catch things earlier? > > +1 for including this in CI tests I didn't even mean CI - I meant 'make check-world' / 'meson test'. Which of course would include CI automatically. > > It definitely would. That would go a long way towards addressing my > > concerns. But I suspect that that would run into problems that stem > > from the fact that the buildfarm is testing something that isn't all > > that simple. Don't typedefs need to be downloaded from some other > > blessed buildfarm animal? > > No. I presume koel is using src/tools/pgindent/typedefs.list, > which has always been the "canonical" list but up to now we've > been lazy about maintaining it. Part of the new regime is that > typedefs.list should now be updated on-the-fly by patches that > add new typedefs. Yea. Otherwise nobody else can indent reliably, without repeating the work of adding typedefs.list entries of all the patches since the last time it was updated in the repository. Greetings, Andres Freund