forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfe97c61
committed
Update nbtree LP_DEAD item deletion comments.
Comments about the consequences of clearing the BTP_HAS_GARBAGE pageflag bit that apply only to VACUUM were added to code that deals withopportunistic deletion of LP_DEAD items by commita760893. The samecomment block was added to both _bt_delitems_vacuum() and_bt_delitems_delete(). Correct _bt_delitems_delete()'s copy of thecomment block._bt_delitems_delete() reliably deletes items that were found by callerto have their LP_DEAD bit set. There is no question about whether ornot unsetting the BTP_HAS_GARBAGE bit can miss some LP_DEAD items thatwere set recently.Also tweak a related section of the nbtree README.1 parentb265aa1 commitfe97c61
2 files changed
+6
-13
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
559 | 559 |
| |
560 | 560 |
| |
561 | 561 |
| |
562 |
| - | |
563 |
| - | |
564 |
| - | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
565 | 565 |
| |
566 | 566 |
| |
567 | 567 |
| |
568 | 568 |
| |
569 | 569 |
| |
570 |
| - | |
| 570 | + | |
571 | 571 |
| |
572 | 572 |
| |
573 | 573 |
| |
|
Lines changed: 2 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1074 | 1074 |
| |
1075 | 1075 |
| |
1076 | 1076 |
| |
1077 |
| - | |
1078 |
| - | |
1079 |
| - | |
1080 |
| - | |
1081 |
| - | |
1082 |
| - | |
1083 |
| - | |
1084 |
| - | |
1085 |
| - | |
| 1077 | + | |
| 1078 | + | |
1086 | 1079 |
| |
1087 | 1080 |
| |
1088 | 1081 |
| |
|
0 commit comments
Comments
(0)