Commit 49bff53
committed
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 Rowley1 parent 8df9bd0 commit 49bff53
1 file changed
+2
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | 593 | | |
598 | 594 | | |
599 | 595 | | |
| |||
1052 | 1048 | | |
1053 | 1049 | | |
1054 | 1050 | | |
1055 | | - | |
| 1051 | + | |
1056 | 1052 | | |
1057 | 1053 | | |
1058 | 1054 | | |
| |||
1084 | 1080 | | |
1085 | 1081 | | |
1086 | 1082 | | |
1087 | | - | |
| 1083 | + | |
1088 | 1084 | | |
1089 | 1085 | | |
1090 | 1086 | | |
| |||
0 commit comments