postgres.git / summary / log / commit / refs
commit c17b91ed9f84e43efc9a3d41ade5d1d1b827f8d4
Author: Amit Langote <amitlan@postgresql.org>
Date: Fri Aug 07 07:12:47 2026 +0000
First released in: 19.0
Remove stale comment on ri_FastPathCheck()
The note claiming ri_FastPathCheck() is only used by the ALTER TABLE
validation path is no longer accurate. Rather than reword it, remove
it; the block comment above RI_FKey_check()'s call to the function
already documents when each path is taken, and a duplicated
cross-reference here would only drift out of date again.
Reported-by: Noah Misch <noah@leadboat.com>
Reviewed-by: Ayush Tiwari <ayushtiwari.slg01@gmail.com>
Discussion: https://postgr.es/m/20260705210533.ee.noahmisch@microsoft.com
Backpatch-through: 19
src/backend/utils/adt/ri_triggers.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/backend/utils/adt/ri_triggers.c b/src/backend/utils/adt/ri_triggers.c
index bf54f9b4592..2f6c8197b2d 100644
--- a/src/backend/utils/adt/ri_triggers.c
+++ b/src/backend/utils/adt/ri_triggers.c
@@ -2795,9 +2795,6 @@ ri_PerformCheck(const RI_ConstraintInfo *riinfo,
*
* If no matching PK row exists, report the violation via ri_ReportViolation(),
* otherwise, the function returns normally.
- *
- * Note: This is only used by the ALTER TABLE validation path. Other paths use
- * ri_FastPathBatchAdd().
*/
static void
ri_FastPathCheck(RI_ConstraintInfo *riinfo,
[parent: 89fc6a7c12f2]