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 1jc3zh-0005fE-CE for pgsql-hackers@arkaria.postgresql.org; Fri, 22 May 2020 09:29:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jc3zg-0005lZ-5M for pgsql-hackers@arkaria.postgresql.org; Fri, 22 May 2020 09:29:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jc3zf-0005lF-UO for pgsql-hackers@lists.postgresql.org; Fri, 22 May 2020 09:29:31 +0000 Received: from forward3-smtp.messagingengine.com ([66.111.4.237]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jc3zd-00044M-C2 for pgsql-hackers@postgresql.org; Fri, 22 May 2020 09:29:31 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id EECA119425BB; Fri, 22 May 2020 05:29:27 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 22 May 2020 05:29:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=jBReudFaLG5v4VkTLLdJAPW5yyq3z9M9rKQui1Epi E8=; b=GsPkh0SCJcrXKNydWBjRXV1AFrmh5CIMpzBxeHmXRjXb7pIdeVcscH2DM onhf7e0IXmPo2cBqGZOuXAvD6E/cPJgllcDegepu1XjYM5y95BPUFCW5OYJ9pgX2 2++mWj5sNd2m56rAxYcRJeahFVeLcApeYJRXERCIXC+2PssUUjvAdLRgGTWxju0U RJdyRriaC2ZDtgwiYlD3VBa3bUgIScEcZqyi3a7S+ecb5hURETJ3dIExXx83Hj+2 VLGOls0vpvn6TZ1hif9fO7aaSXJC3TZmGFOhElwTGUORs0Unz1GvB4h4yEi7JsrA qy0Eq/p6FStxdGSi491NR4K7r5DRQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddufedgudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhfhokffffgggjggtgfesth ejredttdefjeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgv rhdrvghishgvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhmqeenucggtffrrg htthgvrhhnpedtveeghedtjedvvedvleejueevjeejtdellefgkeelfeeikeejlefgkedt udeuvdenucffohhmrghinhepvdhnughquhgrughrrghnthdrtghomhenucfkphepleefrd dvgeefrdekvddrvdegieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnughquhgrughrrghnth drtghomh X-ME-Proxy: Received: from april.pezone.net (p5df352f6.dip0.t-ipconnect.de [93.243.82.246]) by mail.messagingengine.com (Postfix) with ESMTPA id 74D0A30664B6; Fri, 22 May 2020 05:29:26 -0400 (EDT) Subject: Re: pgindent vs dtrace on macos To: Tom Lane References: <79ed5348-be7a-b647-dd40-742207186a22@2ndquadrant.com> <21042.1589983015@sss.pgh.pa.us> Cc: pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Fri, 22 May 2020 11:29:25 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <21042.1589983015@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-05-20 15:56, Tom Lane wrote: > 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. We should generally try to do that, if only so that they don't appear weird and random when looking at them. I think in the past it would have been very difficult for a generation script to emulate pgindent's weird un-indentation logic on trailing lines, but that shouldn't be a problem anymore. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services