Skip to content

fix(worker): prevent rapid manager cycling for databases without extension#3

Merged
willibrandon merged 1 commit into
REL2_x_STABLEfrom
fix-manager-worker-cycling
Jan 10, 2026
Merged

fix(worker): prevent rapid manager cycling for databases without extension#3
willibrandon merged 1 commit into
REL2_x_STABLEfrom
fix-manager-worker-cycling

Conversation

@willibrandon

Copy link
Copy Markdown
Owner

Summary

  • Fixes manager workers rapidly cycling (start/exit/restart) when pglogical is loaded via shared_preload_libraries but not installed in all databases
  • Adds skip_supervisor_wakeup flag to prevent immediate supervisor wakeup when manager exits due to missing extension
  • Supervisor now restarts managers on normal timeout (30s Windows, 180s Unix) instead of immediately

Test plan

  • Load pglogical in shared_preload_libraries with multiple databases (some with extension, some without)
  • Verify managers for databases with extension stay running
  • Verify no rapid cycling in logs for databases without extension

…nsion

When pglogical is loaded via shared_preload_libraries, manager workers
were rapidly cycling (start, exit, restart) for databases that don't
have the extension installed. This caused excessive log noise and
wasted resources.

The fix adds a skip_supervisor_wakeup flag to prevent the supervisor
from being woken immediately when a manager exits due to missing
extension. The supervisor will restart managers on its normal timeout
(30s Windows, 180s Unix) instead.
@willibrandon
willibrandon merged commit 5dabf03 into REL2_x_STABLE Jan 10, 2026
23 of 24 checks passed
@willibrandon
willibrandon deleted the fix-manager-worker-cycling branch January 10, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant