diff options
author | Noah Misch <noah@leadboat.com> | 2024-10-25 06:51:03 -0700 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2024-10-25 06:51:03 -0700 |
commit | 8e7e672cdaa6bfec85d4d5dd9be84159df23bb41 (patch) | |
tree | db340a3e67adf8734d1375377b0484c7532d95f6 /contrib/postgres_fdw/postgres_fdw.c | |
parent | 243e9b40f1b2dd09d6e5bf91ebf6e822a2cd3704 (diff) | |
download | postgresql-8e7e672cdaa6bfec85d4d5dd9be84159df23bb41.tar.gz postgresql-8e7e672cdaa6bfec85d4d5dd9be84159df23bb41.zip |
WAL-log inplace update before revealing it to other sessions.
A buffer lock won't stop a reader having already checked tuple
visibility. If a vac_update_datfrozenid() and then a crash happened
during inplace update of a relfrozenxid value, datfrozenxid could
overtake relfrozenxid. That could lead to "could not access status of
transaction" errors. Back-patch to v12 (all supported versions). In
v14 and earlier, this also back-patches the assertion removal from
commit 7fcf2faf9c7dd473208fd6d5565f88d7f733782b.
Discussion: https://postgr.es/m/20240620012908.92.nmisch@google.com
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions