pgsql: Add some very basic tests for make_expanded_record_from_datum()

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add some very basic tests for make_expanded_record_from_datum()
Date: 2026-11-09 14:22:01
Message-ID: E1xQQG1-000000003iZ-1FX6@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/da2cb60900a5a6777aac7979769e917174f350c0
Author: Andres Freund <andres(at)anarazel(dot)de>

Modified Files
--------------
src/test/regress/expected/rowtypes.out | 40 ++++++++++++++++++
src/test/regress/expected/test_setup.out | 13 ++++++
src/test/regress/regress.c | 72 ++++++++++++++++++++++++++++++++
src/test/regress/sql/rowtypes.sql | 21 ++++++++++
src/test/regress/sql/test_setup.sql | 16 +++++++
5 files changed, 162 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Noah Misch 2026-11-09 14:22:02 pgsql: Fix PL/Perl to cope with errors thrown from tied structures.
Previous Message Noah Misch 2026-11-09 14:22:00 pgsql: Enforce view row visibility for INSERT ... ON CONFLICT target ro