| From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Have pg_rewind run crash recovery before rewinding |
| Date: | 2019-09-27 19:45:12 |
| Message-ID: | E1iDwAy-0006jw-4S@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Have pg_rewind run crash recovery before rewinding
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
Reviewed-by: Álvaro Herrera
Discussion: https://postgr.es/m/CAEET0ZEffUkXc48pg2iqARQgGRYDiiVxDu+yYek_bTwJF+q=Uw@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/5adafaf176d09ba5ea11ae128416fc5211469bc0
Modified Files
--------------
doc/src/sgml/ref/pg_rewind.sgml | 15 ++++++++
src/bin/pg_rewind/pg_rewind.c | 80 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 95 insertions(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andres Freund | 2019-09-27 21:23:38 | pgsql: Silence -Wmaybe-uninitialized compiler warnings in dbcommands.c. |
| Previous Message | Andres Freund | 2019-09-27 17:29:49 | pgsql: Fix implicit-fallthrough compiler warning introduced in 6dda292d |