Fix excessive logging in idle slotsync worker. The slotsync worker was incorrectly identifying no-op states as successful updates, triggering a busy loop to sync slots that logged messages every 200ms. This patch corrects the logic to properly classify these states, enabling the worker to respect normal sleep intervals when no work is performed.
Reported-by: Fujii Masao <[email protected]> Author: Zhijie Hou <[email protected]> Reviewed-by: Amit Kapila <[email protected]> Reviewed-by: shveta malik <[email protected]> Backpatch-through: 17, where it was introduced Discussion: https://postgr.es/m/cahgqgwf6zg9z8ws1yb3hy1vqv-wt7hr0qyxcn2hdbjvzqku...@mail.gmail.com Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/540fe8fb5c22a6c724513f62daaae79af5d559cb Modified Files -------------- src/backend/replication/logical/slotsync.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-)
