pgsql: Refactor/reword some error messages to avoid duplicates - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Refactor/reword some error messages to avoid duplicates
Date
Msg-id E1sbidH-0038hc-Ia@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Refactor/reword some error messages to avoid duplicates

Also, remove brackets around "EMPTY [ ARRAY ]".  An error message is
not the place to state that a keyword is optional.

Backpatch to 17.

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/899f39ea25f2ee63a0c557f3908e15b280a4367a

Modified Files
--------------
src/backend/executor/execExprInterp.c            |  8 ++-
src/backend/parser/parse_expr.c                  | 90 +++++++++++++++++-------
src/backend/parser/parse_jsontable.c             |  4 +-
src/test/regress/expected/sqljson_jsontable.out  |  4 +-
src/test/regress/expected/sqljson_queryfuncs.out |  2 +-
5 files changed, 74 insertions(+), 34 deletions(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Improve file header comments for astramer code.
Next
From: Alexander Korotkov
Date:
Subject: Re: pgsql: Fix more holes with SLRU code in need of int64 for segment numbe