pgsql: Fix more Datum conversion inconsistencies

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix more Datum conversion inconsistencies
Date: 2026-07-08 04:23:03
Message-ID: E1whJoN-00068m-1K@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix more Datum conversion inconsistencies

This is a continuation of the work done in ac59a90bef45. The
*GetDatum() macros for output should match with what the SQL functions
use as DatumGet*() in input.

Aleksander has spotted some of the areas patched here, for pageinspect.
I have spotted the rest while digging into the state of the tree.

There is no behavior change after this commit, since all the affected
values are small enough that the signed bit is never used.

Author: Aleksander Alekseev <aleksander(at)tigerdata(dot)com>
Author: Michael Paquier <michael(at)paquier(dot)xyz>
Discussion: https://postgr.es/m/afLsqRjVqKK8hhKk@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d92e98340fcb4c3ef728b3e8204573bdc86098f7

Modified Files
--------------
contrib/pageinspect/brinfuncs.c | 8 ++++----
contrib/pageinspect/btreefuncs.c | 2 +-
contrib/pageinspect/ginfuncs.c | 2 +-
contrib/pageinspect/gistfuncs.c | 4 ++--
contrib/pageinspect/heapfuncs.c | 18 +++++++++---------
contrib/pageinspect/rawpage.c | 14 +++++++-------
contrib/pg_logicalinspect/pg_logicalinspect.c | 8 ++++----
contrib/pg_walinspect/pg_walinspect.c | 14 +++++++-------
contrib/pgstattuple/pgstatindex.c | 2 +-
src/backend/access/gin/ginlogic.c | 6 +++---
src/backend/access/transam/xlogfuncs.c | 2 +-
src/backend/catalog/pg_proc.c | 4 ++--
src/backend/utils/adt/lockfuncs.c | 10 +++++-----
13 files changed, 47 insertions(+), 47 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2026-07-08 05:34:49 pgsql: injection_points: Switch wait/wakeup to rely on atomics
Previous Message Fujii Masao 2026-07-08 03:47:45 pgsql: doc: Clarify COPY FROM WHERE expression restrictions