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:05:35 +0000 (16:05 +0900)
commit3a8a1f3254b2e3e981a91cb021ea0e9fdb5c3b9c
treeae892e66de6c5a495d2c64811208fcb31050ec4a
parentb81a71aa05f294705e1b1d4fe24548f175f9bfe9
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