What you need to know
Keep publisher-slot cleanup owned and visible when a retired subscriber cannot reach its source.
Potentially affected
This applies to PostgreSQL 17 logical-subscription retirement or migration. It concerns ownership of leftover publisher resources, not permission to remove an arbitrary replication slot.
DSE recommendation
DSE recommends capturing the subscription-to-slot mapping before decommissioning either side.
Keep publisher-slot cleanup owned and visible when a retired subscriber cannot reach its source.
Source facts
PostgreSQL 17 normally creates a publisher replication slot with a subscription and removes it when the subscription is dropped. The subscription and slot can also be managed separately. If the publisher is unreachable, retiring the local subscription may require disassociating its slot first. Slots left on a publisher that still exists continue reserving WAL, including any remaining table-synchronization slots, and can eventually fill its disk. Local subscription removal does not prove remote cleanup.
Source: PostgreSQL 17 — Subscription.
Applicability
This applies to PostgreSQL 17 logical-subscription retirement or migration. It concerns ownership of leftover publisher resources, not permission to remove an arbitrary replication slot.
DSE recommendation
DSE recommends capturing the subscription-to-slot mapping before decommissioning either side. If a remote server is unavailable, create a tracked follow-up for an administrator to verify its final state when access returns. Require confirmation that no surviving subscriber depends on a slot before approving removal. Keep the publisher’s retained-WAL monitoring active until cleanup is evidenced. A local administrative success message should not close a retirement task that still has a live remote dependency.
Verification
Rehearse removal with a disposable publisher and subscriber, including an unreachable-publisher case. Compare the recorded slot inventory before and after cleanup. Verify the intended subscriber is retired, unrelated slots remain, and the publisher is no longer retaining WAL on behalf of the removed relationship.
Official reference
PostgreSQL 17 — Subscription. Reviewed October 15, 2026.
Review the official source
PostgreSQL 17 — Subscription · Verified October 15, 2026
Need help applying this guidance safely?
DSE can help confirm applicability, protect service continuity, and validate the result across physical security and IT systems.
Talk with DSE