Remove obsolete nbtree page deletion comment.
authorPeter Geoghegan <pg@bowt.ie>
Tue, 27 Aug 2019 21:01:43 +0000 (14:01 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Tue, 27 Aug 2019 21:01:43 +0000 (14:01 -0700)
Commit efada2b8e92, which made the nbtree page deletion algorithm more
robust, removed the concept of a half-dead internal page.  Remove a
comment about half dead parent pages that was overlooked.

src/backend/access/nbtree/nbtpage.c
src/backend/access/nbtree/nbtutils.c

index 18c6de21c1c9ec96ddcb945fcbf9beffff76c7bf..268f869a36c9189c8af66f15ef715deb40457215 100644 (file)
@@ -1930,9 +1930,6 @@ _bt_unlink_halfdead_page(Relation rel, Buffer leafbuf, bool *rightsib_empty)
     * might be possible to push the fast root even further down, but the odds
     * of doing so are slim, and the locking considerations daunting.)
     *
-    * We don't support handling this in the case where the parent is becoming
-    * half-dead, even though it theoretically could occur.
-    *
     * We can safely acquire a lock on the metapage here --- see comments for
     * _bt_newroot().
     */
index 9b172c1a191f70acd6adea827c5d137e7411f46c..4c7b2d0966bd1c527733981fbee0a0784b12a0fd 100644 (file)
@@ -2388,7 +2388,7 @@ _bt_check_natts(Relation rel, bool heapkeyspace, Page page, OffsetNumber offnum)
    int         tupnatts;
 
    /*
-    * We cannot reliably test a deleted or half-deleted page, since they have
+    * We cannot reliably test a deleted or half-dead page, since they have
     * dummy high keys
     */
    if (P_IGNORE(opaque))