Update obsolete index scan TID comments.

Oversight in commit c2fe139c20.
This commit is contained in:
Peter Geoghegan 2024-03-11 18:07:10 -04:00
parent bbbf71d9a6
commit 3045324214
2 changed files with 8 additions and 8 deletions

View File

@ -37,8 +37,8 @@ static void _hash_readnext(IndexScanDesc scan, Buffer *bufp,
* be pinned but not locked, and so->currPos.itemIndex identifies
* which item was previously returned.
*
* On successful exit, scan->xs_ctup.t_self is set to the TID
* of the next heap tuple. so->currPos is updated as needed.
* On successful exit, scan->xs_heaptid is set to the TID of the next
* heap tuple. so->currPos is updated as needed.
*
* On failure exit (no more tuples), we return false with pin
* held on bucket page but no pins or locks held on overflow
@ -279,7 +279,7 @@ _hash_readprev(IndexScanDesc scan,
* overflow page, both pin and lock are released whereas if it is a bucket
* page then it is pinned but not locked and data about the matching
* tuple(s) on the page has been loaded into so->currPos,
* scan->xs_ctup.t_self is set to the heap TID of the current tuple.
* scan->xs_heaptid is set to the heap TID of the current tuple.
*
* On failure exit (no more tuples), we return false, with pin held on
* bucket page but no pins or locks held on overflow page.

View File

@ -861,8 +861,8 @@ _bt_compare(Relation rel,
* qualifications in the scan key. On success exit, the page containing
* the current index tuple is pinned but not locked, and data about
* the matching tuple(s) on the page has been loaded into so->currPos.
* scan->xs_ctup.t_self is set to the heap TID of the current tuple,
* and if requested, scan->xs_itup points to a copy of the index tuple.
* scan->xs_heaptid is set to the heap TID of the current tuple, and if
* requested, scan->xs_itup points to a copy of the index tuple.
*
* If there are no matching items in the index, we return false, with no
* pins or locks held.
@ -1448,9 +1448,9 @@ readcomplete:
* but is not locked, and so->currPos.itemIndex identifies which item was
* previously returned.
*
* On successful exit, scan->xs_ctup.t_self is set to the TID of the
* next heap tuple, and if requested, scan->xs_itup points to a copy of
* the index tuple. so->currPos is updated as needed.
* On successful exit, scan->xs_heaptid is set to the TID of the next
* heap tuple, and if requested, scan->xs_itup points to a copy of the
* index tuple. so->currPos is updated as needed.
*
* On failure exit (no more tuples), we release pin and set
* so->currPos.buf to InvalidBuffer.