snapshot scalability: Move PGXACT->vacuumFlags to ProcGlobal->vacuumFlags.
authorAndres Freund <andres@anarazel.de>
Wed, 15 Jul 2020 22:35:07 +0000 (15:35 -0700)
committerAndres Freund <andres@anarazel.de>
Fri, 14 Aug 2020 22:33:35 +0000 (15:33 -0700)
commit5788e258bb26495fab65ff3aa486268d1c50b123
tree85c92420fc74c07e1812d033f585fc300098d687
parent941697c3c1ae5d6ee153065adb96e1e63ee11224
snapshot scalability: Move PGXACT->vacuumFlags to ProcGlobal->vacuumFlags.

Similar to the previous commit this increases the chance that data
frequently needed by GetSnapshotData() stays in l2 cache. As we now
take care to not unnecessarily write to ProcGlobal->vacuumFlags, there
should be very few modifications to the ProcGlobal->vacuumFlags array.

Author: Andres Freund <andres@anarazel.de>
Reviewed-By: Robert Haas <robertmhaas@gmail.com>
Reviewed-By: Thomas Munro <thomas.munro@gmail.com>
Reviewed-By: David Rowley <dgrowleyml@gmail.com>
Discussion: https://postgr.es/m/20200301083601.ews6hz5dduc3w2se@alap3.anarazel.de
src/backend/access/transam/twophase.c
src/backend/commands/vacuum.c
src/backend/postmaster/autovacuum.c
src/backend/replication/logical/logical.c
src/backend/replication/slot.c
src/backend/storage/ipc/procarray.c
src/backend/storage/lmgr/deadlock.c
src/backend/storage/lmgr/proc.c
src/include/storage/proc.h