Thread

Commits

  1. SQL/JSON: Fix a paragraph in JSON_TABLE documentation

  1. </replaceable> in parentesis is not usual on DOCs

    Marcos Pegoraro <marcos@f10.com.br> — 2024-05-15T12:04:36Z

    This page has 3 items that are between parentheses, there is an explanation
    why they are used this way ?
    
    https://www.postgresql.org/docs/devel/functions-json.html#FUNCTIONS-SQLJSON-TABLE
    
    
    Each syntax element is described below in more detail.
    *context_item*, *path_expression* [ AS *json_path_name* ] [ PASSING {
    *value* AS *varname* } [, ...]]
    
    The input data to query (*context_item*), the JSON path expression defining
    the query (*path_expression*) with an optional name (*json_path_name*), and
    an optional PASSING clause, which can provide data
    
    Why (*context_item*), (*path_expression*) and (*json_path_name*) are inside
    a parentheses ? This is not usual when explaining any other feature.
    
    regards
    Marcos
    
  2. Re: </replaceable> in parentesis is not usual on DOCs

    Daniel Gustafsson <daniel@yesql.se> — 2024-05-15T12:34:21Z

    > On 15 May 2024, at 14:04, Marcos Pegoraro <marcos@f10.com.br> wrote:
    
    > Why (context_item), (path_expression) and (json_path_name) are inside a parentheses ? This is not usual when explaining any other feature. 
    
    Agreed, that's inconsisent with how for example json_table_column is documented
    in the next list item under COLUMNS.  Unless objected to I will remove these
    parenthesis.
    
    --
    Daniel Gustafsson
    
    
    
    
    
  3. Re: </replaceable> in parentesis is not usual on DOCs

    jian he <jian.universality@gmail.com> — 2024-05-16T04:14:56Z

    On Wed, May 15, 2024 at 8:34 PM Daniel Gustafsson <daniel@yesql.se> wrote:
    >
    > > On 15 May 2024, at 14:04, Marcos Pegoraro <marcos@f10.com.br> wrote:
    >
    > > Why (context_item), (path_expression) and (json_path_name) are inside a parentheses ? This is not usual when explaining any other feature.
    >
    > Agreed, that's inconsisent with how for example json_table_column is documented
    > in the next list item under COLUMNS.  Unless objected to I will remove these
    > parenthesis.
    >
    
    >>  The input data to query (context_item), the JSON path expression defining the query (path_expression) with an optional name (json_path_name)
    
    i think the parentheses is for explaining that
    context_item refers "The input data to query";
    path_expression refers "the JSON path expression defining the query";
    json_path_name refers to "an optional name";
    
    
    
    removing parentheses means we need to rephrase this sentence?
    So I come up with the following rephrase:
    
    The context_item specifies the input data to query, the
    path_expression is a JSON path expression defining the query,
    json_path_name is an optional name for the path_expression. The
    optional PASSING clause can provide data values to the
    path_expression.
    
    
    
    
  4. Re: </replaceable> in parentesis is not usual on DOCs

    jian he <jian.universality@gmail.com> — 2024-05-20T00:00:00Z

    On Thu, May 16, 2024 at 12:14 PM jian he <jian.universality@gmail.com> wrote:
    >
    > On Wed, May 15, 2024 at 8:34 PM Daniel Gustafsson <daniel@yesql.se> wrote:
    > >
    > > > On 15 May 2024, at 14:04, Marcos Pegoraro <marcos@f10.com.br> wrote:
    > >
    > > > Why (context_item), (path_expression) and (json_path_name) are inside a parentheses ? This is not usual when explaining any other feature.
    > >
    > > Agreed, that's inconsisent with how for example json_table_column is documented
    > > in the next list item under COLUMNS.  Unless objected to I will remove these
    > > parenthesis.
    > >
    >
    > >>  The input data to query (context_item), the JSON path expression defining the query (path_expression) with an optional name (json_path_name)
    >
    > i think the parentheses is for explaining that
    > context_item refers "The input data to query";
    > path_expression refers "the JSON path expression defining the query";
    > json_path_name refers to "an optional name";
    >
    >
    
    
    > removing parentheses means we need to rephrase this sentence?
    > So I come up with the following rephrase:
    >
    > The context_item specifies the input data to query, the
    > path_expression is a JSON path expression defining the query,
    > json_path_name is an optional name for the path_expression. The
    > optional PASSING clause can provide data values to the
    > path_expression.
    
    Based on this, write a simple patch.
    
  5. Re: </replaceable> in parentesis is not usual on DOCs

    Peter Eisentraut <peter@eisentraut.org> — 2024-05-22T11:14:42Z

    On 20.05.24 02:00, jian he wrote:
    >> removing parentheses means we need to rephrase this sentence?
    >> So I come up with the following rephrase:
    >>
    >> The context_item specifies the input data to query, the
    >> path_expression is a JSON path expression defining the query,
    >> json_path_name is an optional name for the path_expression. The
    >> optional PASSING clause can provide data values to the
    >> path_expression.
    > 
    > Based on this, write a simple patch.
    
    Your patch kind of messes up the indentation of the text you are 
    changing.  Please check that.
    
    
    
    
  6. Re: </replaceable> in parentesis is not usual on DOCs

    jian he <jian.universality@gmail.com> — 2024-05-22T11:22:26Z

    On Wed, May 22, 2024 at 7:14 PM Peter Eisentraut <peter@eisentraut.org> wrote:
    >
    > On 20.05.24 02:00, jian he wrote:
    > >> removing parentheses means we need to rephrase this sentence?
    > >> So I come up with the following rephrase:
    > >>
    > >> The context_item specifies the input data to query, the
    > >> path_expression is a JSON path expression defining the query,
    > >> json_path_name is an optional name for the path_expression. The
    > >> optional PASSING clause can provide data values to the
    > >> path_expression.
    > >
    > > Based on this, write a simple patch.
    >
    > Your patch kind of messes up the indentation of the text you are
    > changing.  Please check that.
    
    please check attached.
    
  7. Re: </replaceable> in parentesis is not usual on DOCs

    Amit Langote <amitlangote09@gmail.com> — 2024-07-16T05:14:01Z

    On Wed, May 22, 2024 at 8:22 PM jian he <jian.universality@gmail.com> wrote:
    > On Wed, May 22, 2024 at 7:14 PM Peter Eisentraut <peter@eisentraut.org> wrote:
    > >
    > > On 20.05.24 02:00, jian he wrote:
    > > >> removing parentheses means we need to rephrase this sentence?
    > > >> So I come up with the following rephrase:
    > > >>
    > > >> The context_item specifies the input data to query, the
    > > >> path_expression is a JSON path expression defining the query,
    > > >> json_path_name is an optional name for the path_expression. The
    > > >> optional PASSING clause can provide data values to the
    > > >> path_expression.
    > > >
    > > > Based on this, write a simple patch.
    > >
    > > Your patch kind of messes up the indentation of the text you are
    > > changing.  Please check that.
    >
    > please check attached.
    
    Sorry about not noticing this earlier.
    
    Thanks for the patch and the reviews.  I've pushed it now after minor changes.
    
    -- 
    Thanks, Amit Langote