pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add some very basic tests for make_expanded_record_from_datum()
Date: Mon, 09 Nov 2026 14:21:51 +0000
Message-ID: <E1xQQFr-000000003No-2hYP@gemulon.postgresql.org> (raw)

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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e874b27122a281e3a17d1db8664c14eb15794282
Author: Andres Freund <andres@anarazel.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(+)



view thread (3+ messages)  latest in thread

Message-ID: <E1xQQFr-000000003No-2hYP@gemulon.postgresql.org>
Permalink:  ../E1xQQFr-000000003No-2hYP@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xQQFr-000000003No-2hYP@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: noah@leadboat.com
  Subject: Re: pgsql: Add some very basic tests for make_expanded_record_from_datum()
  In-Reply-To: <E1xQQFr-000000003No-2hYP@gemulon.postgresql.org>
  References: <E1xQQFr-000000003No-2hYP@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox