Convert ParallelBitmapHeapState->state to an atomic variable. Currently, this variable is a SharedBitmapState protected by a spinlock. By converting it to an atomic variable, we can remove the spinlock.
Reviewed-by: Zsolt Parragi <[email protected]> Tested-by: solai v <[email protected]> Discussion: https://postgr.es/m/alAJeRRzehDjLaF1%40nathan Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/b1ec662ec189f3492a5c386edf80359347abefef Modified Files -------------- src/backend/executor/nodeBitmapHeapscan.c | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-)
