From e915fed291772d8d5fcc437ac777f7beca8c24ce Mon Sep 17 00:00:00 2001 From: Peter Geoghegan Date: Sun, 8 Jul 2018 10:50:13 -0700 Subject: [PATCH] Correct obsolete unique index insertion comment. Commit bc292937ae6 failed to update a comment about unique index checking. _bt_insertonpg() is no longer responsible for finding an insertion location while preventing conflicting insertions. --- src/backend/access/nbtree/nbtinsert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/access/nbtree/nbtinsert.c b/src/backend/access/nbtree/nbtinsert.c index 907cce0724..4b2b4746f7 100644 --- a/src/backend/access/nbtree/nbtinsert.c +++ b/src/backend/access/nbtree/nbtinsert.c @@ -247,7 +247,7 @@ top: * inserter can be making the check at one time. Furthermore, once we are * past the check we hold write locks continuously until we have performed * our insertion, so no later inserter can fail to see our insertion. - * (This requires some care in _bt_insertonpg.) + * (This requires some care in _bt_findinsertloc.) * * If we must wait for another xact, we release the lock while waiting, * and then must start over completely. -- 2.40.0