Обсуждение: pgsql: Move scanint8() to numutils.c

Поиск
Список
Период
Сортировка

pgsql: Move scanint8() to numutils.c

От
Peter Eisentraut
Дата:
Move scanint8() to numutils.c

Move scanint8() to numutils.c and rename to pg_strtoint64().  We
already have a "16" and "32" version of that, and the code inside the
functions was aligned, so this move makes all three versions
consistent.  The API is also changed to no longer provide the errorOK
case.  Users that need the error checking can use strtoi64().

Reviewed-by: John Naylor <john.naylor@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/flat/b239564c-cad0-b23e-c57e-166d883cb97d@enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cfc7191dfea330dd7a71e940d59de78129bb6175

Modified Files
--------------
src/backend/parser/parse_node.c             | 12 +++-
src/backend/replication/pgoutput/pgoutput.c | 10 ++--
src/backend/utils/adt/int8.c                | 90 +----------------------------
src/backend/utils/adt/numutils.c            | 84 +++++++++++++++++++++++++++
src/bin/pgbench/pgbench.c                   |  4 +-
src/include/utils/builtins.h                |  1 +
src/include/utils/int8.h                    | 25 --------
7 files changed, 104 insertions(+), 122 deletions(-)