On Thu, Oct 15, 2026 at 12:54 PM shihao zhong <[email protected]> wrote:
>
> Hi,
>
> Since 67c20979ce7, promotion waits until every process absorbs a
> ProcSignalBarrier, even with wal_level=replica and no slots.

Promotion currently waits for the barrier even with wal_level = logical?
Is that really necessary? XLogLogicalInfoActive() seems to always return
true in that case, regardless of the cached value.

Even with your patch allowing backends to process barriers while blocked
on client I/O, in addition to that fix, it's also worth skipping this barrier
when wal_level = logical? That would avoid unnecessary synchronization
with all running processes and could reduce promotion time.

Regards,

-- 
Fujii Masao

Attachment: nocfbot-WIP-v1-0001-Skip-the-end-of-recovery-logical-WAL-barrier-at-w.patch
Description: Binary data

Reply via email to