Change BitmapAdjustPrefetchIterator to accept BlockNumber
authorTomas Vondra <tomas.vondra@postgresql.org>
Sat, 6 Apr 2024 23:25:03 +0000 (01:25 +0200)
committerTomas Vondra <tomas.vondra@postgresql.org>
Sat, 6 Apr 2024 23:25:15 +0000 (01:25 +0200)
commit92641d8d651e685b49a6e2842d306aa5fe7ba500
tree5c570805d51a823c2c6fec8c2474c7e35db0bf68
parent1fdb0ce9b10970a4b02f1ef0c269e2c1fbbecd25
Change BitmapAdjustPrefetchIterator to accept BlockNumber

BitmapAdjustPrefetchIterator() only used the blockno member of the
passed in TBMIterateResult to ensure that the prefetch iterator and
regular iterator stay in sync. Pass it the BlockNumber only, so that we
can move away from using the TBMIterateResult outside of table AM
specific code.

Author: Melanie Plageman
Reviewed-by: Tomas Vondra, Andres Freund, Heikki Linnakangas
Discussion: https://postgr.es/m/CAAKRu_ZwCwWFeL_H3ia26bP2e7HiKLWt0ZmGXPVwPO6uXq0vaA%40mail.gmail.com
src/backend/executor/nodeBitmapHeapscan.c