Mitigate "snapshot too old" performance regression on NUMA
authorKevin Grittner <kgrittn@postgresql.org>
Sat, 7 May 2016 01:05:29 +0000 (20:05 -0500)
committerKevin Grittner <kgrittn@postgresql.org>
Sat, 7 May 2016 01:05:29 +0000 (20:05 -0500)
commit7e3da1c4737fd6582e12c80983987e4d2cbc1d17
tree1632ebf34283546e994d945ec0d10421bbe6c6e4
parenteb7de00ac2d282263541ece849ec71e2809e9467
Mitigate "snapshot too old" performance regression on NUMA

Limit maintenance of time to xid mapping to once per minute.  At
least in the tested case this brings performance within 5% of when
the feature is off, compared to several times slower without this
patch.

While there, fix comments and whitespace.

Ants Aasma, with cosmetic adjustments suggested by Andres Freund
Reviewed by Kevin Grittner and Andres Freund
src/backend/utils/time/snapmgr.c