From 4363f34fc9c37993c24b9214896826d21fa97119 Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Thu, 24 Apr 2025 19:11:43 +0900 Subject: [PATCH] Doc: enhance the description on connection_life_time connection_life_time is a config value to determine the life time of cached connections to PostgreSQL backend. Current document lacks a description that the expiration calculation is actually done at the time when the client disconnects to the process which holds the cached connections. Discussion: [pgpool-hackers: 4577] Doc: enhance the description on connection_life_time https://www.pgpool.net/pipermail/pgpool-hackers/2025-April/004578.html Backpatch-through: v4.2 --- doc.ja/src/sgml/connection-pooling.sgml | 5 +++++ doc/src/sgml/connection-pooling.sgml | 14 ++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/doc.ja/src/sgml/connection-pooling.sgml b/doc.ja/src/sgml/connection-pooling.sgml index 3335e85ae..7f50d5679 100644 --- a/doc.ja/src/sgml/connection-pooling.sgml +++ b/doc.ja/src/sgml/connection-pooling.sgml @@ -444,6 +444,11 @@ pgbench -n -S -p 9999 -c 32 -C -S -T 300 test キャッシュされたPostgreSQLへの接続を切断するまでの時間を秒単位で指定します。 これはキャッシュされた接続の有効期間として働きます。 + + このキャッシュを保持するプロセスに接続中のクライアントがある場合は、その接続が終了するまでconnection_life_timeの有効期間が来たかどうかの計算は行われません。 + したがって、このパラメータの設定値よりも長時間キャッシュされたコネクションが保持されることがあり得ます。 + これを避けたい場合は、を短めに設定することをお勧めします。 +