Hello, > On 16. Jun 2026, at 10:58, Jan Nidzwetzki <[email protected]> wrote: > [...] > > The attached patch does that: when hot standby is not active at the > recovery target (e.g., due to an incomplete snapshot), PostgreSQL will > log a message and shut down instead of promoting silently. It mirrors > how 'pause' is already downgraded to 'shutdown' when hot_standby is off. > This lets the user choose a different recovery target or action. The > patch also updates the documentation to clarify the behavior and adds a > TAP test to verify the change.
Attached is a rebased version of the patch; cfbot reported that the previous version no longer applies to master. v2 is a plain rebase with no functional changes; the only other difference is a perltidy fix in the TAP test. The Commitfest entry is: https://commitfest.postgresql.org/patch/7026/ Any feedback on this approach would be welcome. Best regards Jan
v2-0001-Shut-down-instead-of-promoting-when-recovery-cann.patch
Description: Binary data
-- Jan Nidzwetzki PlanetScale Postgres Core Team
