SQL/JSON: Fix some obsolete comments.
authorAmit Langote <[email protected]>
Fri, 28 Jun 2024 06:09:59 +0000 (15:09 +0900)
committerAmit Langote <[email protected]>
Thu, 4 Jul 2024 07:17:21 +0000 (16:17 +0900)
commit290a6d800d90d36a4a1d45655c944695102fabd1
tree5fc3be0ce534e0d974e1389f5eb89b27aa0d0f04
parent619f76cce11dc51458eb4ea81b0e48d15d0b2d07
SQL/JSON: Fix some obsolete comments.

JSON_OBJECT(), JSON_OBJETAGG(), JSON_ARRAY(), and JSON_ARRAYAGG()
added in 7081ac46ace are not transformed into direct calls to
user-defined functions as the comments claim. Fix by mentioning
instead that they are transformed into JsonConstructorExpr nodes,
which may call them, for example, for the *AGG() functions.

Reported-by: Alexander Lakhin <[email protected]>
Discussion: https://postgr.es/m/058c856a-e090-ac42-ff00-ffe394f52a87%40gmail.com
Backpatch-through: 16
src/backend/parser/parse_expr.c