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 1kKRNH-0004Gf-Ew for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Sep 2020 19:21: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 1kKRNG-000241-3x for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Sep 2020 19:21:18 +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 1kKRNF-00023s-Tl for pgsql-hackers@lists.postgresql.org; Mon, 21 Sep 2020 19:21:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kKRND-0008Jm-Hc for pgsql-hackers@postgresql.org; Mon, 21 Sep 2020 19:21:17 +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 08LJLCXD1023613; Mon, 21 Sep 2020 15:21:12 -0400 From: Tom Lane To: Alvaro Herrera cc: Daniel Gustafsson , Peter Eisentraut , pgsql-hackers Subject: Re: pgindent vs dtrace on macos In-reply-to: <20200921190804.GA2817@alvherre.pgsql> References: <20200921190804.GA2817@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Mon, 21 Sep 2020 16:08:04 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1023611.1600716072.1@sss.pgh.pa.us> Date: Mon, 21 Sep 2020 15:21:12 -0400 Message-ID: <1023612.1600716072@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2020-Sep-21, Tom Lane wrote: >> Here's a proposed patch to fix it that way. > pgtypes_numeric.h still contains > typedef struct > { > } numeric; > ... isn't this more likely to create a typedef entry than merely a > function name? Well, yeah, it *is* a typedef. My proposal is to rename the C function to avoid the conflict, rather than renaming the typedef. Given the small number of direct calls (none), that's a lot less work. Also, I think pgtypes_numeric.h is exposed to ecpg client code, so changing that typedef's name could be quite problematic. regards, tom lane