]> granicus.if.org Git - postgresql/commit
Derive oldestActiveXid at correct time for Hot Standby.
authorSimon Riggs <simon@2ndQuadrant.com>
Wed, 2 Nov 2011 08:52:59 +0000 (08:52 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Wed, 2 Nov 2011 08:52:59 +0000 (08:52 +0000)
commit656bba95af3950b26e9e97d86d29787d89e2b423
treee24596755701b1765ac8f7089109cfa0392b8e46
parentff8451aa14c8513e429cbef09ddc72e79da366a5
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
src/backend/access/transam/xlog.c
src/backend/storage/ipc/procarray.c
src/backend/storage/ipc/standby.c
src/include/storage/procarray.h
src/include/storage/standby.h