Improve error message with JSON_SERIALIZE()

Michael Paquier <michael@paquier.xyz>

Commit: 0a6be1f0ec3cc9b98453bdab2d4edcfd5a00c7fa
Author: Michael Paquier <michael@paquier.xyz>
Date: 2022-07-11T02:20:15Z
Releases: 16.0
Improve error message with JSON_SERIALIZE()

The error message introduced in 3c633f3 can share the same format string
with an existing message used for JSON(), reducing the translation
effort.

Author: Kyotaro Horiguchi
Discussion: https://postgr.es/m/20220708.154135.2123613118233840495.horikyota.ntt@gmail.com
Backpatch-through: 15

Files

PathChange+/−
src/backend/parser/parse_expr.c modified +3 −2
src/test/regress/expected/sqljson.out modified +1 −1

Discussion

Cited messages not in the archive: 20220708.154135.2123613118233840495.horikyota.ntt@gmail.com