diff options
| author | Tatsuo Ishii | 2025-04-24 10:11:43 +0000 |
|---|---|---|
| committer | Tatsuo Ishii | 2025-04-24 10:11:43 +0000 |
| commit | 4363f34fc9c37993c24b9214896826d21fa97119 (patch) | |
| tree | 0b9ad3e7325d5c5e9a77b5bb4daec4b2224b83f0 /doc/src | |
| parent | d766e4a812f2aa78bfc946449620c31e416958a4 (diff) | |
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
Diffstat (limited to 'doc/src')
| -rw-r--r-- | doc/src/sgml/connection-pooling.sgml | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/doc/src/sgml/connection-pooling.sgml b/doc/src/sgml/connection-pooling.sgml index daa84c3f7..3301bd4a9 100644 --- a/doc/src/sgml/connection-pooling.sgml +++ b/doc/src/sgml/connection-pooling.sgml @@ -281,10 +281,20 @@ <listitem> <para> Specifies the time in seconds to terminate the cached connections - to the PostgreSQL backend. This serves as the cached connection expiration time. + to the <productname>PostgreSQL</> backend. This serves as the cached connection expiration time. </para> <para> - The default is 0, which means the cached connections will not be disconnected. + If a client connects to the process which holds the cached + connections, a calculation on + the <varname>connection_life_time</varname> is not performed + until the client disconnects. Thus it is possible that the cached + connections are kept for longer time than this value. To avoid + this, it is recommended to set shorter value + to <xref linkend="guc-client-idle-limit">. + </para> + <para> + The default is 0, which means the cached connections will not be + disconnected. </para> <para> This parameter can only be set at server start. |
