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 1jbPDS-0005Ge-6U for pgsql-hackers@arkaria.postgresql.org; Wed, 20 May 2020 13:57:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jbPDQ-0005D3-0H for pgsql-hackers@arkaria.postgresql.org; Wed, 20 May 2020 13:57:00 +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 1jbPDP-0005AS-PR for pgsql-hackers@lists.postgresql.org; Wed, 20 May 2020 13:56:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jbPDN-0003m2-5x for pgsql-hackers@postgresql.org; Wed, 20 May 2020 13:56:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 04KDutBH021043; Wed, 20 May 2020 09:56:55 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers Subject: Re: pgindent vs dtrace on macos In-reply-to: <79ed5348-be7a-b647-dd40-742207186a22@2ndquadrant.com> References: <79ed5348-be7a-b647-dd40-742207186a22@2ndquadrant.com> Comments: In-reply-to Peter Eisentraut message dated "Wed, 20 May 2020 11:52:25 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21041.1589983015.1@sss.pgh.pa.us> Date: Wed, 20 May 2020 09:56:55 -0400 Message-ID: <21042.1589983015@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > If I run pgindent on a built tree on macos, I get this error > Failure in ./src/backend/utils/probes.h: Error@375: Stuff missing from > end of file > The file in question is built by the dtrace command. I have attached it > here. > Is this something to fix in pgindent? Or should this file be excluded, > since it's generated? Hm, there's nothing obviously wrong with the file. But since it's generated by code not under our control, we should exclude it. And given that, it's probably not worth figuring out why it breaks pgindent. On a closely related point: I was confused for awhile on Monday afternoon, wondering why the built tarballs didn't match my local tree. I eventually realized that when I'd run pgindent on Saturday, it had reformatted some generated files such as src/bin/psql/sql_help.h, causing those not to match the freshly-made ones in the tarball. I wonder if we should make an effort to ensure that our generated .h and .c files always satisfy pgindent. If not, we probably should exclude them too. regards, tom lane