Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sadOI-00ABwu-0m for pgsql-general@arkaria.postgresql.org; Sun, 04 Aug 2024 15:43:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sadOG-009cMF-Ce for pgsql-general@arkaria.postgresql.org; Sun, 04 Aug 2024 15:43:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sadOG-009cM6-1V for pgsql-general@lists.postgresql.org; Sun, 04 Aug 2024 15:43:24 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sadOD-0032Ww-F2 for pgsql-general@lists.postgresql.org; Sun, 04 Aug 2024 15:43:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 474FhIuY399790; Sun, 4 Aug 2024 11:43:18 -0400 From: Tom Lane To: "Abraham, Danny" cc: pgsql-general Subject: Re: Can't change tcp_keepalives_idle In-reply-to: References: Comments: In-reply-to "Abraham, Danny" message dated "Sun, 04 Aug 2024 11:16:21 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <399788.1722786198.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 04 Aug 2024 11:43:18 -0400 Message-ID: <399789.1722786198@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Abraham, Danny" writes: > Change tcp_keepalives_idle in postgresql.conf from 0 to 300 , then pg_ct= l reload but it stays with the old 0 value. > Tried restart and it did not work. PG Log says it was changed. tcp_keepalives_idle isn't implemented on all platforms. But I'd expect to see a LOG message in the postmaster log about that, either something about "setsockopt failed" or "WSAIoctl failed" or "setting the keepalive idle time is not supported". Also, if you inquire the value on a non-TCP connection, you'll get zero because it's not relevant. regards, tom lane