From: Peter Geoghegan Date: Sun, 8 Jul 2018 17:50:13 +0000 (-0700) Subject: Correct obsolete unique index insertion comment. X-Git-Tag: REL_12_BETA1~1918 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e915fed291772d8d5fcc437ac777f7beca8c24ce;p=postgresql 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. --- 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.