Remove dubious warning message from SQL/JSON functions

Peter Eisentraut <peter@eisentraut.org>

Commit: 881cd9e581c2c40023f82edcd1cd2335691b78f2
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2023-08-18T05:41:14Z
Releases: 17.0
Remove dubious warning message from SQL/JSON functions

There was a warning that FORMAT JSON has no effect on json/jsonb
types, which is true, but it's not clear why we should issue a warning
about it.  The SQL standard does not say anything about this, which
should generally govern the behavior here.  So remove it.

Discussion: https://www.postgresql.org/message-id/flat/dfec2cae-d17e-c508-6d16-c2dba82db486%40eisentraut.org

Files

PathChange+/−
src/backend/parser/parse_expr.c modified +0 −5
src/test/regress/expected/sqljson.out modified +0 −6

Discussion