Обсуждение: pgsql: Cleanup initialization of Hot Standby.

Поиск
Список
Период
Сортировка

pgsql: Cleanup initialization of Hot Standby.

От
sriggs@postgresql.org (Simon Riggs)
Дата:
Log Message:
-----------
Cleanup initialization of Hot Standby. Clarify working with reanalysis
of requirements and documentation on LogStandbySnapshot(). Fixes
two minor bugs reported by Tom Lane that would lead to an incorrect
snapshot after transaction wraparound. Also fix two other problems
discovered that would give incorrect snapshots in certain cases.
ProcArrayApplyRecoveryInfo() substantially rewritten. Some minor
refactoring of xact_redo_apply() and ExpireTreeKnownAssignedTransactionIds().

Modified Files:
--------------
    pgsql/src/backend/access/transam:
        xact.c (r1.289 -> r1.290)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/xact.c?r1=1.289&r2=1.290)
        xlog.c (r1.409 -> r1.410)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/xlog.c?r1=1.409&r2=1.410)
    pgsql/src/backend/storage/ipc:
        procarray.c (r1.68 -> r1.69)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/ipc/procarray.c?r1=1.68&r2=1.69)
        standby.c (r1.21 -> r1.22)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/ipc/standby.c?r1=1.21&r2=1.22)
    pgsql/src/include/storage:
        procarray.h (r1.31 -> r1.32)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/storage/procarray.h?r1=1.31&r2=1.32)
        standby.h (r1.9 -> r1.10)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/storage/standby.h?r1=1.9&r2=1.10)