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 1rzbij-005GPE-K1 for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Apr 2024 12:27:29 +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 1rzbif-00El8B-CR for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Apr 2024 12:27:25 +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 1rzbie-00El83-Vz for pgsql-hackers@lists.postgresql.org; Wed, 24 Apr 2024 12:27:24 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rzbiY-004Pec-9S for pgsql-hackers@postgresql.org; Wed, 24 Apr 2024 12:27: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 43OCRDJG3674466; Wed, 24 Apr 2024 08:27:13 -0400 From: Tom Lane To: Andrew Dunstan cc: Peter Eisentraut , Nathan Bossart , pgsql-hackers@postgresql.org Subject: Re: Why does pgindent's README say to download typedefs.list from the buildfarm? In-reply-to: <0d751dc8-0dd0-4335-a429-f43ad1e1db2f@dunslane.net> References: <20240422192218.GB367217@nathanxps13> <3154983.1713816488@sss.pgh.pa.us> <20240422202010.GA420168@nathanxps13> <3157876.1713817732@sss.pgh.pa.us> <4dd59e83-c848-43fc-933a-5f50f6a61472@eisentraut.org> <0d751dc8-0dd0-4335-a429-f43ad1e1db2f@dunslane.net> Comments: In-reply-to Andrew Dunstan message dated "Wed, 24 Apr 2024 06:37:00 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3674464.1713961633.1@sss.pgh.pa.us> Date: Wed, 24 Apr 2024 08:27:13 -0400 Message-ID: <3674465.1713961633@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrew Dunstan writes: > On 2024-04-24 We 06:12, Peter Eisentraut wrote: >> Is the code to extract typedefs available somewhere independent of the >> buildfarm? It would be useful sometimes to be able to run this >> locally, like before and after some patch, to keep the in-tree >> typedefs list updated. > There's been talk about it but I don't think anyone's done it. I'd be > more than happy if the buildfarm client could just call something in the > core repo (c.f. src/test/perl/Postgres/Test/AdjustUpgrade.pm). There is already src/tools/find_typedef, which looks like it might be an ancestral version of the current buildfarm code (which is sub find_typedefs in run_build.pl of the client distribution). Perhaps it'd be useful to bring that up to speed with the current BF code. The main problem with this though is that a local run can only give you the system-supplied typedefs for your own platform and build options. The value-add that the buildfarm brings is to merge the results from several different platforms. I suppose you could set up some merging process that would add symbols from a local run to src/tools/pgindent/typedefs.list but never remove any. But that hardly removes the need for an occasional cleanup pass. regards, tom lane