pgsql: Remove stale comment on ri_FastPathCheck()

From: Amit Langote <amitlan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove stale comment on ri_FastPathCheck()
Date: 2026-08-07 07:28:41
Message-ID: E1wsF0T-00000000Y4I-1esL@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)leadboat(dot)com>
Reviewed-by: Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com>
Discussion: https://postgr.es/m/20260705210533.ee.noahmisch@microsoft.com
Backpatch-through: 19

Branch
------
master

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

Modified Files
--------------
src/backend/utils/adt/ri_triggers.c | 3 ---
1 file changed, 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Langote 2026-08-07 07:32:03 pgsql: Restrict RI fast-path FK check to btree referenced indexes
Previous Message Amit Langote 2026-08-07 07:28:27 pgsql: Remove stale comment on ri_FastPathCheck()