SHUTDOWN_TIMEOUT variable
How long, in milliseconds, PgPubSub.destroy() waits for a graceful shutdown before giving up. Read from PG_PUBSUB_SHUTDOWN_TIMEOUT, default 1000.
The wait matters because releasing a lock cleanly is what lets a standby take over immediately: the release deletes the lock row, which fires a NOTIFY the waiting processes are listening for. A shutdown that is killed before the release completes falls back to ACQUIRE_INTERVAL instead.
Signature:
SHUTDOWN_TIMEOUT: number
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.