Derive oldestActiveXid at correct time for Hot Standby.

Simon Riggs <simon@2ndQuadrant.com>

Commit: 86e33648992cfc104836ab1fbb6e654308beb4a5
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: 2011-11-02T08:54:56Z
Releases: 9.2.0
Derive oldestActiveXid at correct time for Hot Standby.
There was a timing window between when oldestActiveXid was derived
and when it should have been derived that only shows itself under
heavy load. Move code around to ensure correct timing of derivation.
No change to StartupSUBTRANS() code, which is where this failed.

Bug report by Chris Redekop

Files