]> granicus.if.org Git - postgresql/commitdiff
Correct obsolete unique index insertion comment.
authorPeter Geoghegan <pg@bowt.ie>
Sun, 8 Jul 2018 17:50:13 +0000 (10:50 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Sun, 8 Jul 2018 17:50:13 +0000 (10:50 -0700)
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

index 907cce072412adf88d41ce9317a795fb25820be2..4b2b4746f7fb4099d4c9138299c51804396e1c2a 100644 (file)
@@ -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.