PostgreSQL version:

wal_receiver_timeout

Terminate replication connections that are inactive longer than the specified number of milliseconds. This is useful for the receiving standby server to detect a primary node crash or network outage. A value of zero disables the timeout mechanism. This parameter can only be set in the postgresql.conf file or on the server command line. The default value is 60 seconds.

Comments

Type: integer
Default: 60000
Min: 0
Max: 2147483647
Unit: milliseconds (ms)
Context: sighup
Restart: false
Since: 9.3