Add some very basic tests for make_expanded_record_from_datum()

make_expanded_record_from_datum() / DatumGetExpandedRecord() /
PG_GETARG_EXPANDED_RECORD() were unused. I could not find any extensions
using it either.

It seemed too likely that one of the subsequent fixes in this series
would break them, therefore this adds some tests (written with AI help).

Security: CVE-2026-6460
Backpatch-through: 14

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/510561c3fb4446b023cce8954e18a68cbee42cf9
Author: Andres Freund <[email protected]>

Modified Files
--------------
src/test/regress/expected/rowtypes.out           | 40 +++++++++++++
src/test/regress/input/create_function_0.source  | 17 ++++++
src/test/regress/output/create_function_0.source | 13 +++++
src/test/regress/regress.c                       | 72 ++++++++++++++++++++++++
src/test/regress/sql/rowtypes.sql                | 21 +++++++
5 files changed, 163 insertions(+)

Reply via email to