Make crash recovery ignore recovery target settings.
authorFujii Masao <fujii@postgresql.org>
Mon, 30 Sep 2019 01:18:15 +0000 (10:18 +0900)
committerFujii Masao <fujii@postgresql.org>
Mon, 30 Sep 2019 01:20:36 +0000 (10:20 +0900)
commit4af2ac3deeca24d3b8cb1abeb49bd62a7d013fa3
tree2df17a756249e5ad77863d60d9bf4eb818df5f06
parent2ce9bca36458a1f1907c82eb2e9bd642cb1fca26
Make crash recovery ignore recovery target settings.

In v11 or before, recovery target settings could not take effect in
crash recovery because they are specified in recovery.conf and
crash recovery always starts without recovery.conf. But commit
2dedf4d9a8 integrated recovery.conf into postgresql.conf and
which unexpectedly allowed recovery target settings to take effect
even in crash recovery. This is definitely not good behavior.

To fix the issue, this commit makes crash recovery always ignore
recovery target settings.

Back-patch to v12.

Author: Peter Eisentraut
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/e445616d-023e-a268-8aa1-67b8b335340c@pgmasters.net
src/backend/access/transam/xlog.c