pgsql: Add some very basic tests for make_expanded_record_from_datum()

Поиск
Список
Период
Сортировка
Искать

pgsql: Add some very basic tests for make_expanded_record_from_datum()

От:
Noah Misch <noah@leadboat.com>
Дата:
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_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d3d599625d0312a834d403e209f0500d7475c40d
Author: Andres Freund 

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(+)

FAQ