diff options
author | Peter Geoghegan <pg@bowt.ie> | 2019-12-22 19:57:35 -0800 |
---|---|---|
committer | Peter Geoghegan <pg@bowt.ie> | 2019-12-22 19:57:35 -0800 |
commit | fe97c61c8777858cc1a271e657a7d812e100ef00 (patch) | |
tree | 07650ce203947221246cd0343ca708a3b2d88c25 /src/backend/access/gist/gistbuildbuffers.c | |
parent | b265aa1f39b672d263e37bdb715516d32128d0c4 (diff) | |
download | postgresql-fe97c61c8777858cc1a271e657a7d812e100ef00.tar.gz postgresql-fe97c61c8777858cc1a271e657a7d812e100ef00.zip |
Update nbtree LP_DEAD item deletion comments.
Comments about the consequences of clearing the BTP_HAS_GARBAGE page
flag bit that apply only to VACUUM were added to code that deals with
opportunistic deletion of LP_DEAD items by commit a760893d. The same
comment block was added to both _bt_delitems_vacuum() and
_bt_delitems_delete(). Correct _bt_delitems_delete()'s copy of the
comment block.
_bt_delitems_delete() reliably deletes items that were found by caller
to have their LP_DEAD bit set. There is no question about whether or
not unsetting the BTP_HAS_GARBAGE bit can miss some LP_DEAD items that
were set recently.
Also tweak a related section of the nbtree README.
Diffstat (limited to 'src/backend/access/gist/gistbuildbuffers.c')
0 files changed, 0 insertions, 0 deletions