aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/varlena.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2020-04-05 17:47:30 -0700
committerAndres Freund <andres@anarazel.de>2020-04-05 17:48:33 -0700
commit1ca97af3ede47486a513df44cd8ac2fc242c1631 (patch)
tree61dfa43382acc1524625b25f5b32f671f5224d48 /src/backend/utils/adt/varlena.c
parent250041a561a8cf34d981b2adbcf4b3b8030e24fd (diff)
downloadpostgresql-1ca97af3ede47486a513df44cd8ac2fc242c1631.tar.gz
postgresql-1ca97af3ede47486a513df44cd8ac2fc242c1631.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/adt/varlena.c')
0 files changed, 0 insertions, 0 deletions