From: | Simon Riggs <simon(at)2ndQuadrant(dot)com> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Derive oldestActiveXid at correct time for Hot Standby. |
Date: | 2011-11-02 08:55:09 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | 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
------
master
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2011-11-02 14:28:08 | pgsql: Refactor xlog.c to create src/backend/postmaster/startup.c |
Previous Message | Simon Riggs | 2011-11-02 08:53:58 | pgsql: Derive oldestActiveXid at correct time for Hot Standby. |