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 1kKRAa-0003cj-Tv for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Sep 2020 19:08:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kKRAZ-0006GC-QU for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Sep 2020 19:08:11 +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 1kKRAZ-0006G4-EP for pgsql-hackers@lists.postgresql.org; Mon, 21 Sep 2020 19:08:11 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kKRAV-0003EW-Sk for pgsql-hackers@postgresql.org; Mon, 21 Sep 2020 19:08:10 +0000 Received: by mail-qt1-x841.google.com with SMTP id z2so13355940qtv.12 for ; Mon, 21 Sep 2020 12:08:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=97lwrw7tlTPDaV/pTc50Kl7+GtoEBdL8QArljE+UHtU=; b=yt6Gw8kAP3A7qtTkTjjUQuKUhOGr60aVPtS/+FMjPbtBWKrPjv5DNHs6aq5jMegukJ 6r++kEpYG2n3uZl8ouvVbdDzdHJRAwXYwxzbE6f7Nwrsf8a0wfKYTX/GzNhdgNZrdKvV k4cdkKPM2YFf/fsSRdfAThQDjqFV0oCBBTBZSpVTJq0YHj44Fd1YAZPw4g5MiiMwwSsJ omHgbSWGliUcwYnc5wY5J6CwzcigZVxaQaGpop8gotD5rcQIBgq4LXOp2lww4O+yDOXN vgCEhvuTvnjYVEIq7LVdsm74NKI34ggxNz3kiKYYl6QdjK5FyqlYlwCUe1XARGyoEfGJ O7oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=97lwrw7tlTPDaV/pTc50Kl7+GtoEBdL8QArljE+UHtU=; b=sAoc3NvrqWT1j5iIYd47CqmrJRgxPpm6dnlsJk8MEfABd3ByNsQuDpvILOUiWrmkFo yKyplmCKAgCaAZBhgdda9gqg3PrqyPrzrXAeKOeTG7RjT97zCdXRu7GyQ5gLeXi7qllL Gx7QkpFByPezdY8rX6yeOP9UDK8ekxsEvNtN4Z/dwo3EjY9KCOK3EVDUNQaqgPXXNeeQ r3MhhJo3XwmEYtBs7/4N2fBfHea9/+tIs9DNuNHA+rsEjeK23/hZDbPywZLgrYy5HmRy gHMvLb15qePeirMFCi2RURnYSzcMc572Y5e9xp59e82QBtVCnlOmjy0vLfNoJ5gnYopO tkEw== X-Gm-Message-State: AOAM5338TQGMxmdQT23xv9E+QCl+pxefbDYyyBYKT6eLz+m2/29+F+bK g/+Qva18dH0+ZPZbhE0q65ySnA== X-Google-Smtp-Source: ABdhPJxsesMQ6MjQp/2y0rbXaCG80RfnCRaL491XiM+AzD0FhVnOaRBpx1/agWhmxX/EJyfDTiuJYg== X-Received: by 2002:ac8:47d3:: with SMTP id d19mr1040626qtr.263.1600715286664; Mon, 21 Sep 2020 12:08:06 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.148]) by smtp.gmail.com with ESMTPSA id a25sm10484901qtd.8.2020.09.21.12.08.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Sep 2020 12:08:06 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 6F0092A1509; Mon, 21 Sep 2020 16:08:04 -0300 (-03) Date: Mon, 21 Sep 2020 16:08:04 -0300 From: Alvaro Herrera To: Tom Lane Cc: Daniel Gustafsson , Peter Eisentraut , pgsql-hackers Subject: Re: pgindent vs dtrace on macos Message-ID: <20200921190804.GA2817@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1019914.1600714537@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Sep-21, Tom Lane wrote: > Oh wait, I forgot about the fmgrprotos.h discrepancy. > > I wrote: > > It strikes me that a low-cost workaround would be to rename these > > C functions. There's no law that their C names must match the > > SQL names. > > Here's a proposed patch to fix it that way. pgtypes_numeric.h still contains typedef struct { int ndigits; /* number of digits in digits[] - can be 0! */ int weight; /* weight of first digit */ int rscale; /* result scale */ int dscale; /* display scale */ int sign; /* NUMERIC_POS, NUMERIC_NEG, or NUMERIC_NAN */ NumericDigit *buf; /* start of alloc'd space for digits[] */ NumericDigit *digits; /* decimal digits */ } numeric; ... isn't this more likely to create a typedef entry than merely a function name? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services