aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2021-06-28 08:42:48 +0530
committerAmit Kapila <akapila@postgresql.org>2021-06-28 08:42:48 +0530
commit741deb2603c758c67f199c9129d2e92bd80cec2e (patch)
treee8a859fce2d94a1121c8860d0e65454623218376 /contrib/postgres_fdw
parentfd7bc10ab4c6a88846d1b8a35d16cfe0b8f5a487 (diff)
downloadpostgresql-741deb2603c758c67f199c9129d2e92bd80cec2e.tar.gz
postgresql-741deb2603c758c67f199c9129d2e92bd80cec2e.zip
Fix race condition in TransactionGroupUpdateXidStatus().
When we cannot immediately acquire XactSLRULock in exclusive mode at commit time, we add ourselves to a list of processes that need their XIDs status update. We do this if the clog page where we need to update the current transaction status is the same as the group leader's clog page, otherwise, we allow the caller to clear it by itself. Now, when we can't add ourselves to any group, we were not clearing the current proc if it has already become a member of some group which was leading to an assertion failure when the same proc was assigned to another backend after the current backend exits. Reported-by: Alexander Lakhin Bug: 17072 Author: Amit Kapila Tested-By: Alexander Lakhin Backpatch-through: 11, where it was introduced Discussion: https://postgr.es/m/17072-2f8764857ef2c92a@postgresql.org
Diffstat (limited to 'contrib/postgres_fdw')
0 files changed, 0 insertions, 0 deletions