]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Mop-up for Datum conversion cleanups.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 8 Aug 2025 22:44:57 +0000 (18:44 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 8 Aug 2025 22:44:57 +0000 (18:44 -0400)
commit665c3dbba497b795c4ee46145777bc4eb89c78a1
tree97f51b84a004547b56fb465cf73ed0d58d018307
parentff89e182d42048380dba32fee1b491893c7b4bec
Mop-up for Datum conversion cleanups.

Fix a couple more places where an explicit Datum conversion
is needed (not clear how we missed these in ff89e182d and
previous commits).

Replace the minority usage "(Datum) NULL" with "(Datum) 0".
The former depends on the assumption that Datum is the same
width as Pointer, the latter doesn't.  Anyway consistency
is a good thing.

This is, I believe, the last of the notational mop-up needed
before we can consider changing Datum to uint64 everywhere.
It's also important cleanup for more aggressive ideas such
as making Datum a struct.

Discussion: https://postgr.es/m/1749799.1752797397@sss.pgh.pa.us
Discussion: https://postgr.es/m/8246d7ff-f4b7-4363-913e-827dadfeb145@eisentraut.org
13 files changed:
contrib/ltree/_ltree_gist.c
src/backend/catalog/pg_aggregate.c
src/backend/catalog/pg_constraint.c
src/backend/catalog/pg_conversion.c
src/backend/catalog/pg_namespace.c
src/backend/catalog/pg_operator.c
src/backend/catalog/pg_type.c
src/backend/executor/spi.c
src/backend/nodes/readfuncs.c
src/backend/utils/adt/jsonfuncs.c
src/backend/utils/adt/rangetypes.c
src/include/access/htup_details.h
src/include/access/itup.h