Add TCP keepalive support to libpq.
This adds four additional connection parameters to libpq: keepalives,
keepalives_idle, keepalives_count, and keepalives_interval.
keepalives default to on, per discussion, but can be turned off by
specifying keepalives=0. The remaining parameters, where supported,
can be used to adjust how often keepalives are sent and how many
can be lost before the connection is broken.
The immediate motivation for this patch is to make sure that
walreceiver will eventually notice if the master reboots without
closing the connection cleanly, but it should be helpful in other
cases as well.
Tollef Fog Heen, Fujii Masao, and me.
libpq.sgml (r1.308 -> r1.309)
fe-connect.c (r1.393 -> r1.394)
libpq-int.h (r1.150 -> r1.151)
pgsql-hackers by date
|Next:||From: Bruce Momjian||Date: 2010-06-23 21:57:36|
|Subject: Re: extensible enum types|
|Previous:||From: Guillaume Lelarge||Date: 2010-06-23 21:29:29|
|Subject: Re: Cannot cancel the change of a tablespace|
pgsql-committers by date
|Next:||From: User Itagaki||Date: 2010-06-24 04:34:13|
|Subject: pgbulkload - pgbulkload: Disable PARALLEL writer because of bugs|
|Previous:||From: User Bmomjian||Date: 2010-06-23 20:10:50|
|Subject: pg-migrator - pg_migrator: Specify user names for all external commands |