pgsql: Deduplicate "invalid input syntax" messages for various types.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Deduplicate "invalid input syntax" messages for various types.
Date: 2018-07-22 22:30:20
Message-ID: E1fhMrs-00034W-V5@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Deduplicate "invalid input syntax" messages for various types.

Previously a lot of the error messages referenced the type in the
error message itself. That requires that the message is translated
separately for each type.

Note that currently a few smallint cases continue to reference the
integer, rather than smallint, type. A later patch will create a
separate routine for 16bit input.

Author: Andres Freund
Discussion: https://postgr.es/m/20180707200158.wpqkd7rjr4jxq5g7@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3522d0eaba5a976f09a48810dd25dff6ab3565df

Modified Files
--------------
contrib/dblink/expected/dblink.out | 2 +-
contrib/postgres_fdw/expected/postgres_fdw.out | 8 ++++----
doc/src/sgml/xtypes.sgml | 4 ++--
src/backend/utils/adt/int8.c | 4 ++--
src/backend/utils/adt/numutils.c | 12 ++++++------
src/backend/utils/adt/timestamp.c | 4 ++--
src/pl/plpython/expected/plpython_subtransaction.out | 4 ++--
src/pl/plpython/expected/plpython_types.out | 2 +-
src/pl/tcl/expected/pltcl_subxact.out | 6 +++---
src/test/regress/expected/aggregates.out | 2 +-
src/test/regress/expected/alter_table.out | 2 +-
src/test/regress/expected/copy2.out | 2 +-
src/test/regress/expected/int2.out | 14 +++++++-------
src/test/regress/expected/int4.out | 14 +++++++-------
src/test/regress/expected/int8.out | 10 +++++-----
src/test/regress/expected/plpgsql.out | 4 ++--
src/test/regress/expected/select_parallel.out | 2 +-
src/test/regress/expected/timestamptz.out | 2 +-
src/test/regress/regress.c | 4 ++--
src/tutorial/complex.c | 4 ++--
20 files changed, 53 insertions(+), 53 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2018-07-23 00:06:17 pgsql: Fix JITed EEOP_AGG_INIT_TRANS, which missed some state.
Previous Message Tom Lane 2018-07-21 19:41:23 pgsql: Further portability hacking in pg_upgrade's test script.