Update obsolete index scan TID comments.
authorPeter Geoghegan <pg@bowt.ie>
Mon, 11 Mar 2024 22:07:10 +0000 (18:07 -0400)
committerPeter Geoghegan <pg@bowt.ie>
Mon, 11 Mar 2024 22:07:10 +0000 (18:07 -0400)
Oversight in commit c2fe139c20.

src/backend/access/hash/hashsearch.c
src/backend/access/nbtree/nbtsearch.c

index 8de3eab498afa135a488759c1562bbb12c500723..0d99d6abc86693ce7abe781e5429b1921527cc80 100644 (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.
index 63ee9ba225d066ff7ec48be1956e77eb994e50c6..23e723a233cb231ff2be3df838b46cfefc3f7615 100644 (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.