pgsql: Derive oldestActiveXid at correct time for Hot Standby.

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема pgsql: Derive oldestActiveXid at correct time for Hot Standby.
Дата
Msg-id E1RLWbF-0004nE-8v@gemulon.postgresql.org
обсуждение исходный текст
Список 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

Details
-------
http://git.postgresql.org/pg/commitdiff/86e33648992cfc104836ab1fbb6e654308beb4a5

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 по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: pgsql: Derive oldestActiveXid at correct time for Hot Standby.
Следующее
От: Simon Riggs
Дата:
Сообщение: pgsql: Refactor xlog.c to create src/backend/postmaster/startup.c