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 attribute versioning specific tests
Date: Mon, 09 Nov 2026 14:22:01 +0000
Message-ID: <E1xQQG1-000000003jQ-2wql@gemulon.postgresql.org> (raw)

Add attribute versioning specific tests

Some of these were originally written with AI contributions, but they
have been heavily rewritten since.

The most important thing this tests is pg_upgrade's handling of
attribute versions, including verification of composite columns staying
properly readable across upgrades.

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

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5f0add5cf1c6e1c8eda2120598878ec3796cc34a
Author: Andres Freund <andres@anarazel.de>

Modified Files
--------------
contrib/test_decoding/Makefile                    |   3 +-
contrib/test_decoding/expected/rowtypes_alter.out |  63 ++++
contrib/test_decoding/meson.build                 |   1 +
contrib/test_decoding/sql/rowtypes_alter.sql      |  49 +++
src/bin/pg_dump/t/002_pg_dump.pl                  |  74 ++++
src/bin/pg_upgrade/Makefile                       |   2 +-
src/bin/pg_upgrade/meson.build                    |   1 +
src/bin/pg_upgrade/t/009_composite_types.pl       | 391 +++++++++++++++++++
src/test/regress/expected/alter_table.out         |  41 ++
src/test/regress/expected/attribute_version.out   | 437 ++++++++++++++++++++++
src/test/regress/parallel_schedule                |   2 +-
src/test/regress/regress.c                        |  40 ++
src/test/regress/sql/alter_table.sql              |  28 ++
src/test/regress/sql/attribute_version.sql        | 344 +++++++++++++++++
14 files changed, 1473 insertions(+), 3 deletions(-)



view thread (3+ messages)

Message-ID: <E1xQQG1-000000003jQ-2wql@gemulon.postgresql.org>
Permalink:  ../E1xQQG1-000000003jQ-2wql@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xQQG1-000000003jQ-2wql@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 attribute versioning specific tests
  In-Reply-To: <E1xQQG1-000000003jQ-2wql@gemulon.postgresql.org>
  References: <E1xQQG1-000000003jQ-2wql@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