From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: jsonapi: Use const char * |
Date: | 2024-06-21 05:58:12 |
Message-ID: | E1sKXHo-002Nsi-2K@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
jsonapi: Use const char *
Apply const qualifiers to char * arguments and fields throughout the
jsonapi. This allows the top-level APIs such as
pg_parse_json_incremental() to declare their input argument as const.
It also reduces the number of unconstify() calls.
Reviewed-by: Andrew Dunstan <andrew(at)dunslane(dot)net>
Discussion: https://www.postgresql.org/message-id/flat/f732b014-f614-4600-a437-dba5a2c3738b%40eisentraut.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/15cd9a3881b030a1a4bddc809f038f86ec27e66d
Modified Files
--------------
src/backend/utils/adt/jsonfuncs.c | 39 +++++++++++++++++++++------------------
src/common/jsonapi.c | 26 +++++++++++++-------------
src/include/common/jsonapi.h | 14 +++++++-------
3 files changed, 41 insertions(+), 38 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2024-06-21 06:18:56 | pgsql: Fix make build on MinGW |
Previous Message | Amit Kapila | 2024-06-21 04:33:03 | pgsql: Doc: Generated columns are skipped for logical replication. |