]> granicus.if.org Git - postgresql/commit
Avoid SnapshotResetXmin() during AtEOXact_Snapshot()
authorSimon Riggs <simon@2ndQuadrant.com>
Fri, 24 Mar 2017 14:20:59 +0000 (14:20 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Fri, 24 Mar 2017 14:20:59 +0000 (14:20 +0000)
commit42b4b0b2413b9b472aaf2112a3bbfd80a6ab4dc5
tree3e40c73b0fcbc2faac1d468e21001514572bd3b1
parent8398c836892fde2b99139cc4711e57b7e59582b6
Avoid SnapshotResetXmin() during AtEOXact_Snapshot()

For normal commits and aborts we already reset PgXact->xmin
Avoiding touching highly contented shmem improves concurrent
performance.

Simon Riggs

Discussion: CANP8+jJdXE9b+b9F8CQT-LuxxO0PBCB-SZFfMVAdp+akqo4zfg@mail.gmail.com
src/backend/access/transam/xact.c
src/backend/utils/time/snapmgr.c
src/include/utils/snapmgr.h