Re: pgsql: Common SQL/JSON clauses

From: Andres Freund <andres(at)anarazel(dot)de>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Common SQL/JSON clauses
Date: 2022-03-22 22:33:19
Message-ID: 20220322223319.so4ajcki7wwaujin@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Hi,

On 2022-03-22 21:34:25 +0000, Andrew Dunstan wrote:
> Common SQL/JSON clauses
>
> This introduces some of the building blocks used by the SQL/JSON
> constructor and query functions. Specifically, it provides node
> executor and grammar support for the FORMAT JSON [ENCODING foo]
> clause, and values decorated with it, and for the RETURNING clause.
>
> The following SQL/JSON patches will leverage these.

This currently triggers a number of warnings. I assume that's because of the
following patches not being there yet? How far out are those?

/home/andres/src/postgresql/src/backend/parser/gram.y: warning: 6 nonterminals useless in grammar [-Wother]
/home/andres/src/postgresql/src/backend/parser/gram.y: warning: 9 rules useless in grammar [-Wother]
/home/andres/src/postgresql/src/backend/parser/gram.y:15249.1-15: warning: nonterminal useless in grammar: json_value_expr [-Wother]
15249 | json_value_expr:
| ^~~~~~~~~~~~~~~
/home/andres/src/postgresql/src/backend/parser/gram.y:15256.1-22: warning: nonterminal useless in grammar: json_format_clause_opt [-Wother]
15256 | json_format_clause_opt:
| ^~~~~~~~~~~~~~~~~~~~~~
/home/andres/src/postgresql/src/backend/parser/gram.y:15268.1-19: warning: nonterminal useless in grammar: json_representation [-Wother]
15268 | json_representation:
| ^~~~~~~~~~~~~~~~~~~
/home/andres/src/postgresql/src/backend/parser/gram.y:15276.1-24: warning: nonterminal useless in grammar: json_encoding_clause_opt [-Wother]
15276 | json_encoding_clause_opt:
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/andres/src/postgresql/src/backend/parser/gram.y:15281.1-13: warning: nonterminal useless in grammar: json_encoding [-Wother]
15281 | json_encoding:
| ^~~~~~~~~~~~~
/home/andres/src/postgresql/src/backend/parser/gram.y:15285.1-22: warning: nonterminal useless in grammar: json_output_clause_opt [-Wother]
15285 | json_output_clause_opt:
| ^~~~~~~~~~~~~~~~~~~~~~

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2022-03-22 23:21:26 Re: pgsql: Common SQL/JSON clauses
Previous Message Andrew Dunstan 2022-03-22 21:34:25 pgsql: Common SQL/JSON clauses