pgsql: Improve handling and coverage of --no-ensure-shutdown in pg_rewi

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Improve handling and coverage of --no-ensure-shutdown in pg_rewi
Дата
Msg-id E1iHGaQ-0005xx-Jr@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Improve handling and coverage of --no-ensure-shutdown in pg_rewind

This includes a couple of changes around the new behavior of pg_rewind
which enforces recovery to happen once on a cluster not shut down
cleanly:
- Some comments and documentation improvements.
- Shutdown the cluster to rewind with immediate mode in all the tests,
this allows to check after the forced recovery behavior which is wanted
as new default.
- Use -F for the forced recovery step, so as postgres does not use
fsync.  This was useless as a final sync is done once the tool is done.

Author: Michael Paquier
Reviewed-by: Alexey Kondratov
Discussion: https://postgr.es/m/20191004083721.GA1829@paquier.xyz

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/ref/pg_rewind.sgml          | 10 ++++++----
src/bin/pg_rewind/pg_rewind.c            | 19 ++++++++++++-------
src/bin/pg_rewind/t/005_same_timeline.pl |  4 ++++
src/bin/pg_rewind/t/RewindTest.pm        | 20 ++++++++++++--------
4 files changed, 34 insertions(+), 19 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Doc: improve docs about pg_statistic_ext_data.
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Fix incorrect use of term HEAD for Git