Simplify productions for FORMAT JSON [ ENCODING name ]

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: d3fe6e90bab52b8cbf085cfad5e4da110a2cd373
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2023-12-11T10:55:34Z
Releases: 17.0
Simplify productions for FORMAT JSON [ ENCODING name ]

This removes the production json_encoding_clause_opt, instead merging
it into json_format_clause.  Also remove the auxiliary
makeJsonEncoding() function.

Reviewed-by: Amit Langote <amitlangote09@gmail.com>
Discussion: https://postgr.es/m/202312071841.u2gueb5dsrbk%40alvherre.pgsql

Files

PathChange+/−
src/backend/nodes/makefuncs.c modified +0 −21
src/backend/parser/gram.y modified +33 −16
src/include/nodes/makefuncs.h modified +0 −1

Discussion