]> granicus.if.org Git - postgresql/commitdiff
Document that TCP keepalive settings read as 0 on Unix-socket connections.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 31 Oct 2012 18:26:20 +0000 (14:26 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 31 Oct 2012 18:26:33 +0000 (14:26 -0400)
Per bug #7631 from Rob Johnson.  The code is operating as designed, but the
docs didn't explain it.

doc/src/sgml/config.sgml

index 5891903c8f686c577da602eb62703c5f1d40de3a..a31130810083a57cec6b2a478997ab98eca82d33 100644 (file)
@@ -591,8 +591,9 @@ SET ENABLE_SEQSCAN TO OFF;
         an otherwise idle connection.  A value of 0 uses the system default.
         This parameter is supported only on systems that support the
         <symbol>TCP_KEEPIDLE</> or <symbol>TCP_KEEPALIVE</> symbols, and on
-        Windows; on other systems, it must be zero. This parameter is ignored
-        for connections made via a Unix-domain socket.
+        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.
        </para>
        <note>
         <para>
@@ -614,8 +615,9 @@ SET ENABLE_SEQSCAN TO OFF;
         otherwise idle connection.  A value of 0 uses the system default.
         This parameter is supported only on systems that support the
         <symbol>TCP_KEEPINTVL</> symbol, and on Windows; on other systems, it
-        must be zero. This parameter is ignored for connections made via a
-        Unix-domain socket.
+        must be zero.
+        In sessions connected via a Unix-domain socket, this parameter is
+        ignored and always reads as zero.
        </para>
        <note>
         <para>
@@ -636,8 +638,9 @@ SET ENABLE_SEQSCAN TO OFF;
         Specifies the number of keepalive packets to send on an otherwise idle
         connection.  A value of 0 uses the system default.  This parameter is
         supported only on systems that support the <symbol>TCP_KEEPCNT</>
-        symbol; on other systems, it must be zero. This parameter is ignored
-        for connections made via a Unix-domain socket.
+        symbol; on other systems, it must be zero.
+        In sessions connected via a Unix-domain socket, this parameter is
+        ignored and always reads as zero.
        </para>
        <note>
         <para>