Wiki / Configuration Parameters
tcp_keepalives_idle
Specifies the amount of time with no network activity after which the operating system should send a TCP keepalive message to the client. If this value is specified without units, it is taken as seconds. A value of 0 (the default) selects the operating system's default. On Windows, setting a value of 0 will set this parameter to 2 hours, since Windows does not provide a way to read the system default value. This parameter is supported only on systems that support TCP_KEEPIDLE or an equivalent socket option, and on Windows; on other systems, it must be zero. In sessions connected via a Unix-domain socket, this parameter is ignored and always reads as zero.
English manual coverage begins with PostgreSQL 7.4. Source history and runtime observations have their own recorded version boundaries.
Reading PG 18·Select a recorded version
- boot val
- 0
- category
- Connections and Authentication / TCP Settings
- context
- user
- documented
- true
- enumvals
- Unknown
- extra desc
- 0 means use the system default.
- lang
- en
- max val
- 2147483647
- metadata version
- 18
- min val
- 0
- name
- tcp_keepalives_idle
- short desc
- Time between issuing TCP keepalives.
- source
- pg-settings-source-snapshot
- unit
- s
- vartype
- integer
Definition PG 18
Specifies the amount of time with no network activity after which the operating system should send a TCP keepalive message to the client. If this value is specified without units, it is taken as seconds. A value of 0 (the default) selects the operating system's default. On Windows, setting a value of 0 will set this parameter to 2 hours, since Windows does not provide a way to read the system default value. This parameter is supported only on systems that support TCP_KEEPIDLE or an equivalent socket option, and on Windows; on other systems, it must be zero. In sessions connected via a Unix-domain socket, this parameter is ignored and always reads as zero.
Compare versions
Source references
Full definition and evidence JSON
Definition sources
center · PostgreSQL 18 · wiki-repair-20261023:8cd2eba345331bf8a2c95711d60298edc87fe931a88d281abd0f61ad4d6c1883
Text language: en · wiki-repair-20261023:8cd2eba345331bf8a2c95711d60298edc87fe931a88d281abd0f61ad4d6c1883