]> granicus.if.org Git - postgresql/commit
Assign AccessExclusiveLocks against subxacts in Hot Standby
authorSimon Riggs <simon@2ndQuadrant.com>
Wed, 22 Mar 2017 16:37:28 +0000 (16:37 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Wed, 22 Mar 2017 16:37:28 +0000 (16:37 +0000)
commit49bff5300d527f28c7670cdfad9e4a1b8f5ccdea
tree530d5551e9f62f605f5791bdeade19d59ae0a09f
parent8df9bd0b445f9bd6134915d4417efde6e85e3add
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@mail.gmail.com

Author: Simon Riggs and David Rowley
src/backend/storage/ipc/standby.c