pgsql: Add test for NOT NULL differing across partition hierarchy

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add test for NOT NULL differing across partition hierarchy
Date: 2026-11-09 14:22:01
Message-ID: E1xQQG1-000000003iN-0xdZ@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add test for NOT NULL differing across partition hierarchy

Test a trigger on a partition table where a columns NOT NULLness differs
between parent and child.

Development versions of an upcoming fix broke those cases without
breaking any extant tests.

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

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7c32010cacb1e4e5ec95a6982da9a0ff48329ebe
Author: Andres Freund <andres(at)anarazel(dot)de>

Modified Files
--------------
src/test/regress/expected/triggers.out | 60 ++++++++++++++++++++++++++++++++++
src/test/regress/sql/triggers.sql | 38 +++++++++++++++++++++
2 files changed, 98 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Noah Misch 2026-11-09 14:22:02 pgsql: Fix PL/Perl to cope with errors thrown from tied structures.
Previous Message Noah Misch 2026-11-09 14:22:00 pgsql: Enforce view row visibility for INSERT ... ON CONFLICT target ro