Remove obsolete nbtree duplicate entries comment.
authorPeter Geoghegan <pg@bowt.ie>
Wed, 19 Dec 2018 05:40:38 +0000 (21:40 -0800)
committerPeter Geoghegan <pg@bowt.ie>
Wed, 19 Dec 2018 05:40:38 +0000 (21:40 -0800)
Remove a comment from the Berkeley days claiming that nbtree must
disambiguate duplicate keys within _bt_moveright().  There is no special
care taken around duplicates within _bt_moveright(), at least since
commit 9e85183bfc3 removed inscrutable _bt_moveright() code to handle
pages full of duplicates.

src/backend/access/nbtree/nbtinsert.c

index 80437cc83169f308ed23cafb5ebdab3c5015e464..a5915a5ff5358d29b282ddc22e6c4528ae1919f2 100644 (file)
@@ -814,10 +814,7 @@ _bt_findinsertloc(Relation rel,
  *             INCOMPLETE_SPLIT flag on it, and release the buffer.
  *
  *             The locking interactions in this code are critical.  You should
- *             grok Lehman and Yao's paper before making any changes.  In addition,
- *             you need to understand how we disambiguate duplicate keys in this
- *             implementation, in order to be able to find our location using
- *             L&Y "move right" operations.
+ *             grok Lehman and Yao's paper before making any changes.
  *----------
  */
 static void