pgsql: Simplify productions for FORMAT JSON [ ENCODING name ]

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Simplify productions for FORMAT JSON [ ENCODING name ]
Date: 2023-12-11 10:55:57
Message-ID: E1rCdx6-009esM-JB@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)gmail(dot)com>
Discussion: https://postgr.es/m/202312071841.u2gueb5dsrbk%40alvherre.pgsql

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d3fe6e90bab52b8cbf085cfad5e4da110a2cd373

Modified Files
--------------
src/backend/nodes/makefuncs.c | 21 -------------------
src/backend/parser/gram.y | 49 +++++++++++++++++++++++++++++--------------
src/include/nodes/makefuncs.h | 1 -
3 files changed, 33 insertions(+), 38 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2023-12-11 11:04:05 pgsql: jit: Create void type in the right context
Previous Message Michael Paquier 2023-12-11 10:50:24 pgsql: Remove trace_recovery_messages