pgsql: Rename jsonpath method arg tokens

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Rename jsonpath method arg tokens
Date: 2026-04-02 19:20:03
Message-ID: E1w8NaF-002eKv-05@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Rename jsonpath method arg tokens

This is just cleanup in the jsonpath grammar.

Rename the `csv_` tokens to `int_`, because they represent signed or
unsigned integers, as follows:

* `csv_elem` => `int_elem`
* `csv_list` => `int_list`
* `opt_csv_list` => `opt_int_list`

Rename the `datetime_precision` tokens to `uint_arg`, as they represent
unsigned integers and will be useful for other methods in the future, as
follows:

* `datetime_precision` => `uint_elem`
* `opt_datetime_precision` => `opt_uint_arg`

Rename the `datetime_template` tokens to `str_arg`, as they represent
strings and will be useful for other methods in the future, as follows:

* `datetime_template` => `str_elem`
* `opt_datetime_template` => `opt_str_arg`

Author: David E. Wheeler <david(at)justatheory(dot)com>
Reviewed-by: Andrew Dunstan <andrew(at)dunslane(dot)net>
Discussion: https://postgr.es/m/CA+v5N40sJF39m0v7h=QN86zGp0CUf9F1WKasnZy9nNVj_VhCZQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a35c9d524ed0a225894c45a33017a82cd8bb6680

Modified Files
--------------
src/backend/utils/adt/jsonpath_gram.y | 42 +++++++++++++++++------------------
1 file changed, 21 insertions(+), 21 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2026-04-02 19:56:26 Re: pgsql: Reduce log level of some logical decoding messages from LOG to D
Previous Message Masahiko Sawada 2026-04-02 18:35:19 pgsql: Add target_relid parameter to pg_get_publication_tables().