↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Wiki / Configuration Parameters

tcp_keepalives_count

Specifies the number of TCP keepalive messages that can be lost before the server's connection to the client is considered dead. A value of 0 (the default) selects the operating system's default. This parameter is supported only on systems that support TCP_KEEPCNT or an equivalent socket option (which does not include 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
Number of consecutive keepalive retransmits that can be lost before a connection is considered dead. 0 means use the system default.
lang
en
max val
2147483647
metadata version
18
min val
0
name
tcp_keepalives_count
short desc
Maximum number of TCP keepalive retransmits.
source
pg-settings-source-snapshot
unit
Unknown
vartype
integer

Definition PG 18

Specifies the number of TCP keepalive messages that can be lost before the server's connection to the client is considered dead. A value of 0 (the default) selects the operating system's default. This parameter is supported only on systems that support TCP_KEEPCNT or an equivalent socket option (which does not include 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:4166698125703a53ddc3af5333f164288ef38a41805fe2bcd86da730f0fdae39

Text language: en · wiki-repair-20261023:4166698125703a53ddc3af5333f164288ef38a41805fe2bcd86da730f0fdae39