Resolve timing issue with logging locks for Hot Standby.

Simon Riggs <simon@2ndQuadrant.com>

Commit: c172b7b02e6f6008d6dad66ddee8f67faf223c5b
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: 2012-01-23T23:37:32Z
Releases: 9.2.0
Resolve timing issue with logging locks for Hot Standby.
We log AccessExclusiveLocks for replay onto standby nodes,
but because of timing issues on ProcArray it is possible to
log a lock that is still held by a just committed transaction
that is very soon to be removed. To avoid any timing issue we
avoid applying locks made by transactions with InvalidXid.

Simon Riggs, bug report Tom Lane, diagnosis Pavan Deolasee

Files