aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2020-03-12 18:06:54 +1300
committerThomas Munro <tmunro@postgresql.org>2020-03-12 18:15:59 +1300
commitd22ac5378fbd9605dceabe1546f737ee005fb7b1 (patch)
tree87a575ef50ae2edd758f64bb031a3c48d98e3555 /src/backend/access/gist
parent0b02476442d56818f9f055b6fbce3a9b83e9b758 (diff)
downloadpostgresql-d22ac5378fbd9605dceabe1546f737ee005fb7b1.tar.gz
postgresql-d22ac5378fbd9605dceabe1546f737ee005fb7b1.zip
Fix nextXid tracking bug on standbys (9.5-11 only).
RecordKnownAssignedTransactionIds() should never move nextXid backwards. Before this commit, that could happen if some other code path had advanced it without advancing latestObservedXid. One consequence is that a well timed XLOG_CHECKPOINT_ONLINE could cause hot standby feedback messages to get confused and report an xmin from a future epoch, potentially allowing vacuum to run too soon on the primary. Repair, by making sure RecordKnownAssignedTransactionIds() can only move nextXid forwards. In release 12 and master, this was already done by commit 2fc7af5e, which consolidated similar code and straightened out this bug. Back-patch to supported releases before that. Author: Eka Palamadai <ekanatha@amazon.com> Discussion: https://postgr.es/m/98BB4805-D0A2-48E1-96F4-15014313EADC@amazon.com
Diffstat (limited to 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions