You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
snapshot scalability: Move delayChkpt from PGXACT to PGPROC.
The goal of separating hotly accessed per-backend data from PGPROCinto PGXACT is to make accesses fast (GetSnapshotData() inparticular). But delayChkpt is not actually accessed frequently; onlywhen starting a checkpoint. As it is frequently modified (multipletimes in the course of a single transaction), storing it in the samecacheline as hotly accessed data unnecessarily dirties a contendedcacheline.Therefore move delayChkpt to PGPROC.This is part of a larger series of patches intending to improveGetSnapshotData() scalability. It is committed and pushed separately,as it is independently beneficial (small but measurable win, limitedby the other frequent modifications of PGXACT).Author: Andres FreundReviewed-By: Robert Haas, Thomas Munro, David RowleyDiscussion:https://postgr.es/m/20200301083601.ews6hz5dduc3w2se@alap3.anarazel.de