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

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_dump: Preserve NO INHERIT on NOT NULL on inheritance children
Date: 2026-02-26 10:50:56
Message-ID: E1vvYxM-001Egc-30@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)universality(at)gmail(dot)com>
Backpatch-through: 18
Discussion: https://postgr.es/m/CACJufxEDEOO09G+OQFr=HmFr9ZDLZbRoV7+pj58h3_WeJ_K5UQ@mail.gmail.com

Branch
------
master

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

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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Álvaro Herrera 2026-02-26 12:51:29 pgsql: Reduce includes in pgstat.h
Previous Message Noah Misch 2026-02-26 02:16:30 pgsql: EUC_CN, EUC_JP, EUC_KR, EUC_TW: Skip U+00A0 tests instead of fai