postgres/src/backend/access
Peter Eisentraut 8a27d418f8 Mark function arguments of type "Datum *" as "const Datum *" where possible
Several functions in the codebase accept "Datum *" parameters but do
not modify the pointed-to data.  These have been updated to take
"const Datum *" instead, improving type safety and making the
interfaces clearer about their intent.  This change helps the compiler
catch accidental modifications and better documents immutability of
arguments.

Most of "Datum *" parameters have a pairing "bool *isnull" parameter,
they are constified as well.

No functional behavior is changed by this patch.

Author: Chao Li <lic@highgo.com>
Discussion: https://www.postgresql.org/message-id/flat/CAEoWx2msfT0knvzUa72ZBwu9LR_RLY4on85w2a9YpE-o2By5HQ@mail.gmail.com
2025-10-31 10:47:25 +01:00
..
brin Mark function arguments of type "Datum *" as "const Datum *" where possible 2025-10-31 10:47:25 +01:00
common Mark ItemPointer arguments as const throughout 2025-10-30 14:12:06 +01:00
gin Fix some confusing uses of const 2025-10-30 11:20:04 +01:00
gist Remove Item type 2025-10-27 09:55:59 +01:00
hash Mark function arguments of type "Datum *" as "const Datum *" where possible 2025-10-31 10:47:25 +01:00
heap Mark function arguments of type "Datum *" as "const Datum *" where possible 2025-10-31 10:47:25 +01:00
index Remove PointerIsValid() 2025-09-24 15:17:20 +02:00
nbtree Mark function arguments of type "Datum *" as "const Datum *" where possible 2025-10-31 10:47:25 +01:00
rmgrdesc Eliminate XLOG_HEAP2_VISIBLE from vacuum phase III 2025-10-13 18:01:06 -04:00
sequence Update copyright for 2025 2025-01-01 11:21:55 -05:00
spgist Mark function arguments of type "Datum *" as "const Datum *" where possible 2025-10-31 10:47:25 +01:00
table Update some more forward declarations to use typedef 2025-09-25 14:33:19 +02:00
tablesample Update copyright for 2025 2025-01-01 11:21:55 -05:00
transam Fix correctness issue with computation of FPI size in WAL stats 2025-10-29 09:13:31 +09:00
Makefile Introduce sequence_*() access functions 2024-02-26 16:04:59 +09:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00