From 17b98cfda43976e42e89476759ae5b8bc3de2868 Mon Sep 17 00:00:00 2001 From: KR-bluejay Date: Wed, 8 Oct 2025 15:22:01 +0900 Subject: [PATCH] Add description for shutdown_termination_timeout option --- docs/configuration/pgdog.toml/general.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/configuration/pgdog.toml/general.md b/docs/configuration/pgdog.toml/general.md index cee660b..83a94c6 100644 --- a/docs/configuration/pgdog.toml/general.md +++ b/docs/configuration/pgdog.toml/general.md @@ -148,6 +148,12 @@ queries as possible. Default: **`60_000`** (60s) +### `shutdown_termination_timeout` + +How long to wait for active connections to be forcibly terminated after `shutdown_timeout` expires. If set, PgDog will send `CANCEL` requests to PostgreSQL for any remaining active queries before tearing down connection pools. This prevents long-running queries from lingering after shutdown begins. + +Default: **disabled** + ### `query_timeout` Maximum amount of time to wait for a Postgres query to finish executing. Use only in unreliable network conditions or when Postgres runs on unreliable hardware.