BitmapHeapScan: postpone setting can_skip_fetch

Tomas Vondra <tomas.vondra@postgresql.org>

Commit: fe1431e39cdde5f65cb52f068bc86a7490f8a4e3
Author: Tomas Vondra <tomas.vondra@postgresql.org>
Date: 2024-04-06T21:56:49Z
Releases: 17.0
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

Files

PathChange+/−
src/backend/executor/nodeBitmapHeapscan.c modified +11 −10

Discussion