pgsql: Add routine able to update the control file to src/common/

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Add routine able to update the control file to src/common/
Дата
Msg-id E1h3Vro-0003eS-9y@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Add routine able to update the control file to src/common/

This adds a new routine to src/common/ which is compatible with both the
frontend and backend code, able to update the control file's contents.
This is now getting used only by pg_rewind, but some upcoming patches
which add more control on checksums for offline instances will make use
of it.  This could also get used more by the backend as xlog.c has its
own flavor of the same logic with some wait events and an additional
flush phase before closing the opened file descriptor, but this is let
as separate work.

Author: Michael Banck, Michael Paquier
Reviewed-by: Fabien Coelho, Sergei Kornilov
Discussion: https://postgr.es/m/20181221201616.GD4974@nighthawk.caipicrew.dd-dns.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ce6afc6823fbe2d83a5a77061b05864612b6bab2

Modified Files
--------------
src/bin/pg_rewind/pg_rewind.c          | 43 +---------------
src/common/controldata_utils.c         | 94 ++++++++++++++++++++++++++++++++++
src/include/common/controldata_utils.h |  6 ++-
3 files changed, 101 insertions(+), 42 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Allow fractional input values for integer GUCs,and improve roun
Следующее
От: Amit Kapila
Дата:
Сообщение: pgsql: Add more tests for FSM.