pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Change float{4,8}in_internal take const char * input argument
Date: Mon, 19 Oct 2026 07:06:57 +0000
Message-ID: <E1xIhST-00000002EFb-1iCg@gemulon.postgresql.org> (raw)

Change float{4,8}in_internal take const char * input argument

This makes the function signature match strtof()/strtod().

A caller then doesn't have to cast away a const anymore.

Reviewed-by: Rui Zhao <zhaorui126@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de> (older version)
Discussion: https://www.postgresql.org/message-id/c76b72dd-5736-453a-b698-6968d42e4768%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2db51901c48e44369f5e6f209a65983c206075da

Modified Files
--------------
contrib/postgres_fdw/postgres_fdw.c |  2 +-
src/backend/utils/adt/float.c       | 19 ++++++++-----------
src/include/utils/float.h           |  4 ++--
3 files changed, 11 insertions(+), 14 deletions(-)



Message-ID: <E1xIhST-00000002EFb-1iCg@gemulon.postgresql.org>
Permalink:  ../E1xIhST-00000002EFb-1iCg@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xIhST-00000002EFb-1iCg@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Change float{4,8}in_internal take const char * input argument
  In-Reply-To: <E1xIhST-00000002EFb-1iCg@gemulon.postgresql.org>
  References: <E1xIhST-00000002EFb-1iCg@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox