pgsql: Convert a few more datatype input functions to report errors sof - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Convert a few more datatype input functions to report errors sof
Date
Msg-id E1p5cKA-003cnh-CP@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Convert a few more datatype input functions to report errors softly.

Convert the remaining string-category input functions
(bpcharin, varcharin, byteain) to the new style.

Discussion: https://postgr.es/m/3038346.1671060258@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3b9d2deb67a0d5ee681561fc0e07c2dca4e26e96

Modified Files
--------------
src/backend/utils/adt/encode.c          | 35 +++++++++++++++++++++------------
src/backend/utils/adt/varchar.c         | 33 ++++++++++++++++++-------------
src/backend/utils/adt/varlena.c         |  8 +++++---
src/include/utils/builtins.h            |  2 ++
src/test/regress/expected/char.out      | 19 ++++++++++++++++++
src/test/regress/expected/char_1.out    | 19 ++++++++++++++++++
src/test/regress/expected/char_2.out    | 19 ++++++++++++++++++
src/test/regress/expected/strings.out   | 25 +++++++++++++++++++++++
src/test/regress/expected/varchar.out   | 19 ++++++++++++++++++
src/test/regress/expected/varchar_1.out | 19 ++++++++++++++++++
src/test/regress/expected/varchar_2.out | 19 ++++++++++++++++++
src/test/regress/sql/char.sql           |  5 +++++
src/test/regress/sql/strings.sql        |  6 ++++++
src/test/regress/sql/varchar.sql        |  5 +++++
14 files changed, 203 insertions(+), 30 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Convert a few more datatype input functions to report errors sof
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Move provariadic sanity check to a more appropriate place