From 6ff4bbb9b7b60f1caa19bfe2daa80cbca71eadfd Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Fri, 16 Oct 2020 09:49:30 -0500 Subject: [PATCH 1/2] Document idle_in_transaction_session_timeout Simple documentation for the pass-through connection parameter added in node-postgres/pull/2049. The description is taken from https://www.postgresql.org/docs/current/runtime-config-client.html. Closes node-postgres/issues/2381 --- content/api/2-client.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/content/api/2-client.mdx b/content/api/2-client.mdx index 8dcc741..0dd9ef0 100644 --- a/content/api/2-client.mdx +++ b/content/api/2-client.mdx @@ -22,6 +22,7 @@ config = { statement_timeout?: number, // number of milliseconds before a statement in query will time out, default is no timeout query_timeout?: number, // number of milliseconds before a query call will timeout, default is no timeout connectionTimeoutMillis?: number, // number of milliseconds to wait for connection, default is no timeout + idle_in_transaction_session_timeout?: number // number of milliseconds before terminating any session with an open idle connection, default is no timeout } ``` From a9c0460001d2a284eef616f90da16f52f4c92185 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Fri, 16 Oct 2020 09:52:43 -0500 Subject: [PATCH 2/2] Small wording tweak --- content/api/2-client.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/api/2-client.mdx b/content/api/2-client.mdx index 0dd9ef0..dc8e931 100644 --- a/content/api/2-client.mdx +++ b/content/api/2-client.mdx @@ -22,7 +22,7 @@ config = { statement_timeout?: number, // number of milliseconds before a statement in query will time out, default is no timeout query_timeout?: number, // number of milliseconds before a query call will timeout, default is no timeout connectionTimeoutMillis?: number, // number of milliseconds to wait for connection, default is no timeout - idle_in_transaction_session_timeout?: number // number of milliseconds before terminating any session with an open idle connection, default is no timeout + idle_in_transaction_session_timeout?: number // number of milliseconds before terminating any session with an open idle transaction, default is no timeout } ```