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_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a4ba2720b3cb7e6a68848eb649c1ff3a91e852d4
Author: Andres Freund <[email protected]>

Modified Files
--------------
contrib/test_decoding/Makefile                    |   3 +-
contrib/test_decoding/expected/rowtypes_alter.out |  63 ++++
contrib/test_decoding/sql/rowtypes_alter.sql      |  49 +++
src/bin/pg_dump/t/002_pg_dump.pl                  |  74 ++++
src/bin/pg_upgrade/Makefile                       |   5 +
src/bin/pg_upgrade/t/009_composite_types.pl       | 398 ++++++++++++++++++++
src/test/regress/expected/alter_table.out         |  41 ++
src/test/regress/expected/attribute_version.out   | 431 ++++++++++++++++++++++
src/test/regress/input/create_function_0.source   |   5 +
src/test/regress/output/create_function_0.source  |   4 +
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        | 335 +++++++++++++++++
14 files changed, 1476 insertions(+), 2 deletions(-)

Reply via email to