diff options
author | Simon Riggs <simon@2ndQuadrant.com> | 2017-04-18 11:14:05 +0100 |
---|---|---|
committer | Simon Riggs <simon@2ndQuadrant.com> | 2017-04-18 11:14:05 +0100 |
commit | aa203e76004daaee3d70b19cc727ed17b87b3d3a (patch) | |
tree | 2264c35f4a28dd7c63e8ec52cab14a2be983a44c /src/backend/executor/execUtils.c | |
parent | 51175f3638524231405e674e40bde159b0b76727 (diff) | |
download | postgresql-aa203e76004daaee3d70b19cc727ed17b87b3d3a.tar.gz postgresql-aa203e76004daaee3d70b19cc727ed17b87b3d3a.zip |
Don’t push nextid too far forwards in recovery
Doing so allows various crash possibilities. Fix by avoiding
having PrescanPreparedTransactions() increment
ShmemVariableCache->nextXid when it has no 2PC files
Bug found by Jeff Janes, diagnosis and patch by Pavan Deolasee,
then patch re-designed for clarity and full accuracy by
Michael Paquier.
Reported-by: Jeff Janes
Author: Pavan Deolasee, Michael Paquier
Discussion: https://postgr.es/m/CAMkU=1zMLnH_i1-PVQ-biZzvNx7VcuatriquEnh7HNk6K8Ss3Q@mail.gmail.com
Diffstat (limited to 'src/backend/executor/execUtils.c')
0 files changed, 0 insertions, 0 deletions