pgsql: Remove useless/confusing const qualifiers

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove useless/confusing const qualifiers
Date: 2026-08-11 07:42:18
Message-ID: E1wth7o-000000005dw-43dz@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove useless/confusing const qualifiers

The const qualifiers removed here did not qualify what is being
pointed to, which is the normal use in function prototypes. Instead,
they qualify the variable itself, so that it cannot be changed inside
the function. That is itself not wrong, but it's not a normal style,
and it seems distracting here.

Reviewed-by: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/c855d318-4545-4dc7-b466-2e24fbf64725%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/370f3366c4c214abb0c34b2e2bd7fd42802112bf

Modified Files
--------------
src/bin/psql/describe.c | 14 +++++++-------
src/fe_utils/print.c | 20 ++++++++++----------
src/include/fe_utils/print.h | 18 +++++++++---------
3 files changed, 26 insertions(+), 26 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2026-08-11 18:25:42 pgsql: Fix pg_strupper/lower/title/fold() functions to work with C loca
Previous Message David Rowley 2026-08-11 01:30:27 pgsql: Show estimated number of groups for Incremental Sort in EXPLAIN