Обсуждение: pgsql: Fix checkpoint after fast promotion.

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

pgsql: Fix checkpoint after fast promotion.

От
Heikki Linnakangas
Дата:
Fix checkpoint after fast promotion.

The intention was to request a regular online checkpoint immediately after
end of recovery, when performing "fast promotion". However, because the
checkpoint was requested before other backends were allowed to write WAL,
the checkpointer process performed a restartpoint rather than a checkpoint.

Delay the RequestCheckPoint call until after recovery has truly ended, so
that you get a real checkpoint.

Branch
------
master

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

Modified Files
--------------
src/backend/access/transam/xlog.c |   31 ++++++++++++++++---------------
1 files changed, 16 insertions(+), 15 deletions(-)