mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-07 19:47:50 +08:00
Correct _bt_delitems_vacuum() lock comments.
The expectation within _bt_delitems_vacuum() is that caller has a super-exclusive/cleanup buffer lock (not just a pin and a write lock).
This commit is contained in:
parent
1fa846f1c9
commit
44e44bd258
@ -967,8 +967,9 @@ _bt_page_recyclable(Page page)
|
|||||||
* non-leaf page has to be done as part of an atomic action that includes
|
* non-leaf page has to be done as part of an atomic action that includes
|
||||||
* deleting the page it points to.
|
* deleting the page it points to.
|
||||||
*
|
*
|
||||||
* This routine assumes that the caller has pinned and locked the buffer.
|
* This routine assumes that the caller has a super-exclusive write lock on
|
||||||
* Also, the given deletable array *must* be sorted in ascending order.
|
* the buffer. Also, the given deletable array *must* be sorted in ascending
|
||||||
|
* order.
|
||||||
*
|
*
|
||||||
* We record VACUUMs and b-tree deletes differently in WAL. Deletes must
|
* We record VACUUMs and b-tree deletes differently in WAL. Deletes must
|
||||||
* generate recovery conflicts by accessing the heap inline, whereas VACUUMs
|
* generate recovery conflicts by accessing the heap inline, whereas VACUUMs
|
||||||
@ -1049,8 +1050,9 @@ _bt_delitems_vacuum(Relation rel, Buffer buf,
|
|||||||
*
|
*
|
||||||
* As above, must only be used on leaf pages.
|
* As above, must only be used on leaf pages.
|
||||||
*
|
*
|
||||||
* This routine assumes that the caller has pinned and locked the buffer.
|
* This routine assumes that the caller has pinned and write locked the
|
||||||
* Also, the given itemnos *must* appear in increasing order in the array.
|
* buffer. Also, the given itemnos *must* appear in increasing order in the
|
||||||
|
* array.
|
||||||
*
|
*
|
||||||
* This is nearly the same as _bt_delitems_vacuum as far as what it does to
|
* This is nearly the same as _bt_delitems_vacuum as far as what it does to
|
||||||
* the page, but it needs to generate its own recovery conflicts by accessing
|
* the page, but it needs to generate its own recovery conflicts by accessing
|
||||||
|
Loading…
Reference in New Issue
Block a user