Neki, sharded Postgres, is now available. Learn more
Navigation

Primary switchover imminent webhook for Postgres databases

We've added a new webhook event, branch.primary_switchover_imminent, for Postgres databases. This webhook triggers when a planned switchover or restart is about to start on a branch, before your primary pauses writes.

By subscribing to this webhook, you'll get time to drain connections or finish in-flight work on your own terms, instead of losing them mid-request. Delivery is best effort, so treat the notice as an early signal rather than a hard deadline.

View all webhook events