pg_dump: Preserve NO INHERIT on NOT NULL on inheritance children

Álvaro Herrera <alvherre@kurilemu.de>

Commit: c3c8b63d76be16d7fbd9d309e8b640c43554c453
Author: Álvaro Herrera <alvherre@kurilemu.de>
Date: 2026-02-26T10:50:26Z
Releases: 18.4
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 <jian.universality@gmail.com>
Backpatch-through: 18
Discussion: https://postgr.es/m/CACJufxEDEOO09G+OQFr=HmFr9ZDLZbRoV7+pj58h3_WeJ_K5UQ@mail.gmail.com

Files

PathChange+/−
src/bin/pg_dump/pg_dump.c modified +3 −0
src/bin/pg_dump/t/002_pg_dump.pl modified +37 −0

Discussion