pgsql: Assign AccessExclusiveLocks against subxacts in Hot Standby

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Assign AccessExclusiveLocks against subxacts in Hot Standby
Date: 2017-03-22 16:39:48
Message-ID: E1cqjIa-0006XC-Dr@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Assign AccessExclusiveLocks against subxacts in Hot Standby

Previously AELs were registered against the top-level xid, which could
cause locks to be held much longer than necessary in some cases during
Hot Standby replay. We now record locks directly against their appropriate
xids. Requires few code changes because original code allowed for this
situation but didn’t fully implement it.

Discussion: CAKJS1f9vJ841HY=wonnLVbfkTWGYWdPN72VMxnArcGCjF3SywA(at)mail(dot)gmail(dot)com

Author: Simon Riggs and David Rowley

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/49bff5300d527f28c7670cdfad9e4a1b8f5ccdea

Modified Files
--------------
src/backend/storage/ipc/standby.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2017-03-22 16:54:09 pgsql: Refactor GetOldestXmin() to use flags
Previous Message Andrew Dunstan 2017-03-22 16:21:14 Re: [COMMITTERS] pgsql: Sync pg_dump and pg_dumpall output