pgsql: rename alter constraint enforceability related functions

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: rename alter constraint enforceability related functions
Date: 2026-03-11 20:16:34
Message-ID: E1w0Pys-003W3Q-2v@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

rename alter constraint enforceability related functions

The functions AlterConstrEnforceabilityRecurse and
ATExecAlterConstrEnforceability are being renamed to
AlterFKConstrEnforceabilityRecurse and ATExecAlterFKConstrEnforceability,
respectively.

The current alter constraint functions only handle Foreign Key constraints.
Renaming them to be more explicit about the constraint type is necessary;
otherwise, it will cause confusion when we later introduce the ability to alter
the enforceability of other constraints.

Author: Jian He <jian(dot)universality(at)gmail(dot)com>
Reviewed-by: Amul Sul <sulamul(at)gmail(dot)com>
Reviewed-by: Kirill Reshke <reshkekirill(at)gmail(dot)com>
Reviewed-by: Robert Treat <rob(at)xzilla(dot)net>

Discussion: https://postgr.es/m/CACJufxHCh_FU-FsEwsCvg9mN6-5tzR6H9ntn+0KUgTCaerDOmg@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/commands/tablecmds.c | 119 ++++++++++++++++++++-------------------
1 file changed, 60 insertions(+), 59 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2026-03-11 21:30:48 pgsql: Fix use of volatile.
Previous Message Andres Freund 2026-03-11 19:02:57 pgsql: bufmgr: Remove the, now obsolete, BM_JUST_DIRTIED