Re: pgsql: Common SQL/JSON clauses - Mailing list pgsql-committers

From Andres Freund
Subject Re: pgsql: Common SQL/JSON clauses
Date
Msg-id 20220322223319.so4ajcki7wwaujin@alap3.anarazel.de
Whole thread Raw
In response to pgsql: Common SQL/JSON clauses  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: pgsql: Common SQL/JSON clauses  (Andrew Dunstan <andrew@dunslane.net>)
List 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



pgsql-committers by date:

Previous
From: Andrew Dunstan
Date:
Subject: pgsql: Common SQL/JSON clauses
Next
From: Andrew Dunstan
Date:
Subject: Re: pgsql: Common SQL/JSON clauses