pgsql: Add const to read only TableInfo pointers in pg_dump

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add const to read only TableInfo pointers in pg_dump
Date: 2026-01-12 13:31:23
Message-ID: E1vfI0w-00022D-2f@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add const to read only TableInfo pointers in pg_dump

Functions that dump table data receive their parameters through const
void * but were casting away const. Add const qualifiers to functions
that only read the table information.

Author: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Discussion: https://postgr.es/m/aUQHy/MmWq7c97wK%40ip-10-97-1-34.eu-west-3.compute.internal

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/707f905399b4e47c295fe247f76fbbe53c737984

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2026-01-12 15:39:31 pgsql: Avoid casting void * function arguments
Previous Message Peter Eisentraut 2026-01-12 07:36:34 pgsql: Make dmetaphone collation-aware