agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: doc: Clarify ALTER CONSTRAINT enforceability behavior
Date: Sat, 27 Jun 2026 22:10:21 +0000
Message-ID: <E1wdbED-000SMk-11@gemulon.postgresql.org> (raw)

doc: Clarify ALTER CONSTRAINT enforceability behavior

The ALTER TABLE documentation said that FOREIGN KEY and CHECK
constraints may be altered, but did not distinguish between
deferrability and enforceability attributes.

Clarify that deferrability attributes can currently be altered only for
FOREIGN KEY constraints, while enforceability can be altered for both
FOREIGN KEY and CHECK constraints.  Also document that setting a
constraint to ENFORCED verifies existing rows and resumes checking new
or updated rows.

Author: Chao Li <lic@highgo.com>
Reviewed-by: Zsolt Parragi <zsolt.parragi@percona.com>
Discussion: https://postgr.es/m/E74C57FA-1DD0-4C8E-8FB1-538034752592@gmail.com
Discussion: https://postgr.es/m/711B1ED3-1781-4B6C-A573-B58AF20770E5@gmail.com

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/ref/alter_table.sgml | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)



Message-ID: <E1wdbED-000SMk-11@gemulon.postgresql.org>
Permalink:  ../E1wdbED-000SMk-11@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wdbED-000SMk-11@gemulon.postgresql.org

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: andrew@dunslane.net, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: doc: Clarify ALTER CONSTRAINT enforceability behavior
  In-Reply-To: <E1wdbED-000SMk-11@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox