Convert some ParallelBlockTableScanDescData fields to atomics.

Currently, phs_startblock and phs_numblock are of type BlockNumber
and are protected by a spinlock.  By converting them to atomic
variables, we can remove the spinlock and some retry code.

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/7344937cbe640cd8c5304cefe7d6b726187ad4ab

Modified Files
--------------
src/backend/access/heap/heapam_handler.c |  2 +-
src/backend/access/table/tableam.c       | 59 +++++++++++++++-----------------
src/include/access/relscan.h             |  8 ++---
3 files changed, 31 insertions(+), 38 deletions(-)

Reply via email to