RE: Fix slotsync worker busy loop causing repeated log messages
Zhijie Hou (Fujitsu) <houzj.fnst@fujitsu.com>
From: "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Fujii Masao <masao.fujii@gmail.com>
Date: 2026-04-10T10:28:29Z
Lists: pgsql-hackers
Attachments
- v4-0001-Fix-slotsync-worker-busy-loop-causing-repeated-lo.patch (application/octet-stream) patch v4-0001
- v4_PG17_18-0001-Fix-slotsync-worker-busy-loop-causing-rep.patch (application/octet-stream) patch v4-0001
On Friday, April 10, 2026 5:53 PM Amit Kapila <amit.kapila16@gmail.com> wrote: > On Fri, Apr 10, 2026 at 8:28 AM Zhijie Hou (Fujitsu) <houzj.fnst@fujitsu.com> > wrote: > > > > > > Perhaps we could simply compare the slot's old and new LSN/xmin to > > determine whether updated_xmin_or_lsn needs to be set. > > > > The patch works for me. Can we change the comment to as follows: "It is > possible that the slot's xmin or LSNs are not updated, when the synced slot > has reached consistent snapshot state or cannot build the one at all."? Changed as suggested. Here are the patches for both HEAD and back branches. Best Regards, Hou zj
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix excessive logging in idle slotsync worker.
- 85c17f612af7 19 (unreleased) landed
- 540fe8fb5c22 18.4 landed
- 91741b7cb7b5 17.10 landed