pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Common SQL/JSON clauses
Date: Tue, 22 Mar 2022 15:33:19 -0700
Message-ID: <20220322223319.so4ajcki7wwaujin@alap3.anarazel.de> (raw)
In-Reply-To: <E1nWm92-000vEf-FT@gemulon.postgresql.org>
References: <E1nWm92-000vEf-FT@gemulon.postgresql.org>

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





view thread (7+ messages)  latest in thread

Message-ID: <20220322223319.so4ajcki7wwaujin@alap3.anarazel.de>
Permalink:  ../20220322223319.so4ajcki7wwaujin@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20220322223319.so4ajcki7wwaujin@alap3.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, andrew@dunslane.net
  Subject: Re: pgsql: Common SQL/JSON clauses
  In-Reply-To: <20220322223319.so4ajcki7wwaujin@alap3.anarazel.de>
  References: <E1nWm92-000vEf-FT@gemulon.postgresql.org> <20220322223319.so4ajcki7wwaujin@alap3.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox