]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix excessive logging in idle slotsync worker.
authorAmit Kapila <akapila@postgresql.org>
Mon, 13 Apr 2026 04:12:51 +0000 (09:42 +0530)
committerAmit Kapila <akapila@postgresql.org>
Mon, 13 Apr 2026 04:12:51 +0000 (09:42 +0530)
commit540fe8fb5c22a6c724513f62daaae79af5d559cb
tree78ffc349a89571b8bded1a1dca4f6362922bc5d0
parentb081c5b07309e5f95fec90eef5041bcc7a25a794
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 <masao.fujii@gmail.com>
Author: Zhijie Hou <houzj.fnst@fujitsu.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Reviewed-by: shveta malik <shveta.malik@gmail.com>
Backpatch-through: 17, where it was introduced
Discussion: https://postgr.es/m/CAHGQGwF6zG9Z8ws1yb3hY1VqV-WT7hR0qyXCn2HdbjvZQKufDw@mail.gmail.com
src/backend/replication/logical/slotsync.c