mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Update obsolete nbtree deletion comments.
_bt_delitems_delete() is no longer the high-level entry point used by
index tuple deletion driven by index tuples whose LP_DEAD bits are set
(now called "simple index tuple deletion"). It became a lower level
routine that's only called by _bt_delitems_delete_check() following
commit d168b66682
.
This commit is contained in:
@ -1197,7 +1197,7 @@ _bt_delitems_vacuum(Relation rel, Buffer buf,
|
|||||||
*
|
*
|
||||||
* PageIndexTupleOverwrite() won't unset each item's LP_DEAD bit when it
|
* PageIndexTupleOverwrite() won't unset each item's LP_DEAD bit when it
|
||||||
* happens to already be set. It's important that we not interfere with
|
* happens to already be set. It's important that we not interfere with
|
||||||
* _bt_delitems_delete().
|
* any future simple index tuple deletion operations.
|
||||||
*/
|
*/
|
||||||
for (int i = 0; i < nupdatable; i++)
|
for (int i = 0; i < nupdatable; i++)
|
||||||
{
|
{
|
||||||
@ -1230,7 +1230,7 @@ _bt_delitems_vacuum(Relation rel, Buffer buf,
|
|||||||
* This flag indicates the presence of LP_DEAD items on the page (though
|
* This flag indicates the presence of LP_DEAD items on the page (though
|
||||||
* not reliably). Note that we only rely on it with pg_upgrade'd
|
* not reliably). Note that we only rely on it with pg_upgrade'd
|
||||||
* !heapkeyspace indexes. That's why clearing it here won't usually
|
* !heapkeyspace indexes. That's why clearing it here won't usually
|
||||||
* interfere with _bt_delitems_delete().
|
* interfere with simple index tuple deletion.
|
||||||
*/
|
*/
|
||||||
opaque->btpo_flags &= ~BTP_HAS_GARBAGE;
|
opaque->btpo_flags &= ~BTP_HAS_GARBAGE;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user