Avoid unexpected shutdown when sync_replication_slots is enabled. Previously, enabling sync_replication_slots while wal_level was not set to logical could cause the server to shut down. This was because the postmaster performed a configuration check before launching the slot synchronization worker and raised an ERROR if the settings were incompatible. Since ERROR is treated as FATAL in the postmaster, this resulted in the entire server shutting down unexpectedly.
This commit changes the postmaster to log that message with a LOG-level instead of raising an ERROR, allowing the server to continue running even with the misconfiguration. Back-patch to v17, where slot synchronization was introduced. Reported-by: Hugo DUBOIS <hdub...@scaleway.com> Author: Fujii Masao <masao.fu...@gmail.com> Reviewed-by: Hugo DUBOIS <hdub...@scaleway.com> Reviewed-by: Shveta Malik <shveta.ma...@gmail.com> Discussion: https://postgr.es/m/cah0ptu_pc3ohi__xesf9zigcyzai1mo3lsodfyqa4audkm0...@mail.gmail.com Backpatch-through: 17 Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/f71fa981c96dc5672b0aca671a9898a36fa6d19b Modified Files -------------- src/backend/replication/logical/slotsync.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)