Commit b8b3a276 authored by Peter Geoghegan's avatar Peter Geoghegan

Remove obsolete nbtree page deletion comment.

Commit efada2b8, 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.
parent da1b51ec
...@@ -1930,9 +1930,6 @@ _bt_unlink_halfdead_page(Relation rel, Buffer leafbuf, bool *rightsib_empty) ...@@ -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 * might be possible to push the fast root even further down, but the odds
* of doing so are slim, and the locking considerations daunting.) * 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 * We can safely acquire a lock on the metapage here --- see comments for
* _bt_newroot(). * _bt_newroot().
*/ */
......
...@@ -2388,7 +2388,7 @@ _bt_check_natts(Relation rel, bool heapkeyspace, Page page, OffsetNumber offnum) ...@@ -2388,7 +2388,7 @@ _bt_check_natts(Relation rel, bool heapkeyspace, Page page, OffsetNumber offnum)
int tupnatts; 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 * dummy high keys
*/ */
if (P_IGNORE(opaque)) if (P_IGNORE(opaque))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment