pgsql: Add attribute versioning specific tests

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add attribute versioning specific tests
Date: 2026-11-09 14:21:52
Message-ID: E1xQQFs-000000003Oj-06NL@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

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

Browse pgsql-committers by date

  From Date Subject
Next Message Noah Misch 2026-11-09 14:21:53 pgsql: Reject extnamespace if it's temporary or it's '$user'::regnamesp
Previous Message Noah Misch 2026-11-09 14:21:51 pgsql: Close portals at end of trigger functions with transition tables