pgsql: Fix race condition in TransactionGroupUpdateXidStatus().

2021-06-27 Thread Amit Kapila
Fix race condition in TransactionGroupUpdateXidStatus(). When we cannot immediately acquire CLogControlLock 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 stat

pgsql: Fix race condition in TransactionGroupUpdateXidStatus().

2021-06-27 Thread Amit Kapila
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

pgsql: Fix race condition in TransactionGroupUpdateXidStatus().

2021-06-27 Thread Amit Kapila
Fix race condition in TransactionGroupUpdateXidStatus(). When we cannot immediately acquire CLogControlLock 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 stat

pgsql: Fix race condition in TransactionGroupUpdateXidStatus().

2021-06-27 Thread Amit Kapila
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