Subject: pgsql: pg_dump: Preserve NO INHERIT on NOT NULL on inheritance children

From: Álvaro Herrera <[email-masked]>
Date: Thu, 26 Feb 2026 10:50:56 +0000

pg_dump: Preserve NO INHERIT on NOT NULL on inheritance children

When the constraint is printed without the column, we were not printing
the NO INHERIT flag.

Author: Jian He <[email-masked]>
Backpatch-through: 18
Discussion: https://postgr.es/m/CACJufxEDEOO09G+OQFr=[email-masked]

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c3c8b63d76be16d7fbd9d309e8b640c43554c453

Modified Files
--------------
src/bin/pg_dump/pg_dump.c        |  3 +++
src/bin/pg_dump/t/002_pg_dump.pl | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 40 insertions(+)