Skip to content

Commit b8b3a27

Browse files
Remove obsolete nbtree page deletion comment.
Commit efada2b, 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.
1 parent da1b51e commit b8b3a27

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/backend/access/nbtree/nbtpage.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1930,9 +1930,6 @@ _bt_unlink_halfdead_page(Relation rel, Buffer leafbuf, bool *rightsib_empty)
19301930
* might be possible to push the fast root even further down, but the odds
19311931
* of doing so are slim, and the locking considerations daunting.)
19321932
*
1933-
* We don't support handling this in the case where the parent is becoming
1934-
* half-dead, even though it theoretically could occur.
1935-
*
19361933
* We can safely acquire a lock on the metapage here --- see comments for
19371934
* _bt_newroot().
19381935
*/

src/backend/access/nbtree/nbtutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2388,7 +2388,7 @@ _bt_check_natts(Relation rel, bool heapkeyspace, Page page, OffsetNumber offnum)
23882388
int tupnatts;
23892389

23902390
/*
2391-
* We cannot reliably test a deleted or half-deleted page, since they have
2391+
* We cannot reliably test a deleted or half-dead page, since they have
23922392
* dummy high keys
23932393
*/
23942394
if (P_IGNORE(opaque))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy