aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Langote <amitlan@postgresql.org>2024-07-16 14:10:58 +0900
committerAmit Langote <amitlan@postgresql.org>2024-07-16 14:10:58 +0900
commit884d791b213d6bc55f7f9b70d951f395e3ee29bb (patch)
treec56b24055256baa4c8c0eb1def07a9603473ef97
parentd2b74882cab84b9f4fdce0f2f32e892ba9164f5c (diff)
downloadpostgresql-884d791b213d6bc55f7f9b70d951f395e3ee29bb.tar.gz
postgresql-884d791b213d6bc55f7f9b70d951f395e3ee29bb.zip
SQL/JSON: Fix a paragraph in JSON_TABLE documentation
Using <replaceable>text</replaceable> inside parantheses is not a common or good style, so rephrase a sentence to avoid that style. Also rephrase the text in that paragraph a bit while at it. Reported-by: Marcos Pegoraro <marcos@f10.com.br> Author: Jian He <jian.universality@gmail.com> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Reviewed-by: Peter Eisentraut <peter@eisentraut.org> Discussion: https://postgr.es/m/CAB-JLwZqH3Yec6Kz-4-+pa0ZG9QJBsxjJZwYcMZYzEDR_fXnKw@mail.gmail.com
-rw-r--r--doc/src/sgml/func.sgml17
1 files changed, 9 insertions, 8 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 785886af714..3f93c61aa3c 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -19038,14 +19038,15 @@ where <replaceable class="parameter">json_table_column</replaceable> is:
</term>
<listitem>
<para>
- The input data to query (<replaceable>context_item</replaceable>),
- the JSON path expression defining the query (<replaceable>path_expression</replaceable>)
- with an optional name (<replaceable>json_path_name</replaceable>), and an
- optional <literal>PASSING</literal> clause, which can provide data values
- to the <replaceable>path_expression</replaceable>. The result of the input
- data evaluation using the aforementioned elements is called the
- <firstterm>row pattern</firstterm>, which is used as the source for row
- values in the constructed view.
+ The <replaceable>context_item</replaceable> specifies the input document
+ to query, the <replaceable>path_expression</replaceable> is an SQL/JSON
+ path expression defining the query, and <replaceable>json_path_name</replaceable>
+ is an optional name for the <replaceable>path_expression</replaceable>.
+ The optional <literal>PASSING</literal> clause provides data values for
+ the variables mentioned in the <replaceable>path_expression</replaceable>.
+ The result of the input data evaluation using the aforementioned elements
+ is called the <firstterm>row pattern</firstterm>, which is used as the
+ source for row values in the constructed view.
</para>
</listitem>
</varlistentry>