diff options
author | Andres Freund <andres@anarazel.de> | 2020-04-05 17:47:30 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2020-04-05 17:47:30 -0700 |
commit | f946069e6827e729857b9f2db06bf27a1c0563ee (patch) | |
tree | d471b3f3d83d1863864d50a01ab739a4db6023fe /src/backend/utils/init/miscinit.c | |
parent | 549a3e23c3d618103487161b19dbbf8fd2206a5c (diff) | |
download | postgresql-f946069e6827e729857b9f2db06bf27a1c0563ee.tar.gz postgresql-f946069e6827e729857b9f2db06bf27a1c0563ee.zip |
Use TransactionXmin instead of RecentGlobalXmin in heap_abort_speculative().
There's a very low risk that RecentGlobalXmin could be far enough in
the past to be older than relfrozenxid, or even wrapped
around. Luckily the consequences of that having happened wouldn't be
too bad - the page wouldn't be pruned for a while.
Avoid that risk by using TransactionXmin instead. As that's announced
via MyPgXact->xmin, it is protected against wrapping around (see code
comments for details around relfrozenxid).
Author: Andres Freund
Discussion: https://postgr.es/m/20200328213023.s4eyijhdosuc4vcj@alap3.anarazel.de
Backpatch: 9.5-
Diffstat (limited to 'src/backend/utils/init/miscinit.c')
0 files changed, 0 insertions, 0 deletions