pg_dump: Add const decorations

Enterprise / PostgreSQL - Peter Eisentraut [eisentraut.org] - 10 February 2021 12:21 UTC

Add const decorations to the *info arguments of the dump* functions, to clarify that they don't modify that argument. Many other nearby functions modify their arguments, so this can help clarify these different APIs a bit.

Discussion: https://www.postgresql.org/message-id/flat/012d3030-9a2c-99a1-ed2d-988978b5632f%40enterprisedb.com

6499008150 pg_dump: Add const decorations
src/bin/pg_dump/pg_backup.h | 2 +-
src/bin/pg_dump/pg_backup_archiver.h | 4 +-
src/bin/pg_dump/pg_dump.c | 344 +++++++++++++++++------------------
src/bin/pg_dump/pg_dump.h | 2 +-
4 files changed, 176 insertions(+), 176 deletions(-)

Upstream: git.postgresql.org


  • Share