BitmapHeapScan: postpone setting can_skip_fetch
authorTomas Vondra
Sat, 6 Apr 2024 21:56:46 +0000 (23:56 +0200)
committerTomas Vondra
Sat, 6 Apr 2024 21:56:49 +0000 (23:56 +0200)
commitfe1431e39cdde5f65cb52f068bc86a7490f8a4e3
treedd6b1144631560acebb167e1846a0da1f5556769
parent74eaf66f988c868deb0816bae4dd184eedae1448
BitmapHeapScan: postpone setting can_skip_fetch

Set BitmapHeapScanState->can_skip_fetch in BitmapHeapNext() instead of
in ExecInitBitmapHeapScan(). This is a preliminary step to pushing the
skip fetch optimization into heap AM 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