pgsql: Derive oldestActiveXid at correct time for Hot Standby. - Mailing list pgsql-committers

From Simon Riggs
Subject pgsql: Derive oldestActiveXid at correct time for Hot Standby.
Date
Msg-id E1RLWa6-0004jc-8z@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/bf70bf4c7177bdd5c6644da65c0ccea47405d5f3

Modified Files
--------------
src/backend/access/transam/xlog.c   |   14 +++++++--
src/backend/storage/ipc/procarray.c |   57 +++++++++++++++++++++++++++++++++++
src/backend/storage/ipc/standby.c   |    3 +-
src/include/storage/procarray.h     |    1 +
src/include/storage/standby.h       |    2 +-
5 files changed, 71 insertions(+), 6 deletions(-)


pgsql-committers by date:

Previous
From: Simon Riggs
Date:
Subject: pgsql: Derive oldestActiveXid at correct time for Hot Standby.
Next
From: Simon Riggs
Date:
Subject: pgsql: Derive oldestActiveXid at correct time for Hot Standby.