Add const to read only TableInfo pointers in pg_dump

Peter Eisentraut <peter@eisentraut.org>

Commit: 707f905399b4e47c295fe247f76fbbe53c737984
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2026-01-12T13:26:26Z
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.pg@gmail.com>
Discussion: https://postgr.es/m/aUQHy/MmWq7c97wK%40ip-10-97-1-34.eu-west-3.compute.internal

Files

PathChange+/−
src/bin/pg_dump/pg_dump.c modified +7 −7

Discussion