Have pg_rewind run crash recovery before rewinding

Enterprise / PostgreSQL - Alvaro Herrera [alvh.no-ip.org] - 27 September 2019 19:40 EDT

If we don't do this, the rewind fails if the server wasn't cleanly shut down, which seems unhelpful serving no purpose.

Also provide a new option --no-ensure-shutdown to suppress this behavior, for alleged advanced usage that prefers to avoid the crash recovery.

Authors: Paul Guo, Jimmy Yih, Ashwin Agrawal

5adafaf176 Have pg_rewind run crash recovery before rewinding
doc/src/sgml/ref/pg_rewind.sgml | 15 ++++++++
src/bin/pg_rewind/pg_rewind.c | 80 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 95 insertions(+)

Upstream: git.postgresql.org


  • Share