pgsql: doc: Clarify inherited constraint behavior

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: doc: Clarify inherited constraint behavior
Date: 2026-06-27 22:10:21
Message-ID: E1wdbED-000SMh-0y@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

doc: Clarify inherited constraint behavior

Update the table inheritance documentation to mention not-null constraints
alongside check constraints where inherited constraints are discussed.

Also clarify that some properties of inherited constraints can now be altered
directly on child tables, while the resulting constraint must remain compatible
with its inherited parent constraints. For multiple inheritance, say explicitly
that when a column or constraint is inherited from more than one parent, the
stricter definition applies.

Author: Chao Li <lic(at)highgo(dot)com>
Reviewed-by: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
Discussion: https://postgr.es/m/E74C57FA-1DD0-4C8E-8FB1-538034752592@gmail.com

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/ddl.sgml | 33 +++++++++++++++++++--------------
1 file changed, 19 insertions(+), 14 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2026-06-28 00:05:59 pgsql: pgindent fix for commit effb923d9de
Previous Message Peter Eisentraut 2026-06-27 17:42:33 pgsql: Reject child partition FDWs in FOR PORTION OF