Обсуждение: pgsql: Update the location of last removed WAL segment in shared memory

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

pgsql: Update the location of last removed WAL segment in shared memory

От
heikki@postgresql.org (Heikki Linnakangas)
Дата:
Log Message:
-----------
Update the location of last removed WAL segment in shared memory only
after actually removing one, so that if we can't remove segments because
WAL archiving is lagging behind, we don't unnecessarily forbid streaming
the old not-yet-archived segments that are still perfectly valid. Per
suggestion from Fujii Masao.

Modified Files:
--------------
    pgsql/src/backend/access/transam:
        xlog.c (r1.392 -> r1.393)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/xlog.c?r1=1.392&r2=1.393)
    pgsql/src/include/access:
        xlog_internal.h (r1.31 -> r1.32)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/access/xlog_internal.h?r1=1.31&r2=1.32)