Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p5pXB-00054X-HO for pgsql-general@arkaria.postgresql.org; Thu, 15 Dec 2022 14:48:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p5pX9-0000F3-Cq for pgsql-general@arkaria.postgresql.org; Thu, 15 Dec 2022 14:48:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p5pX9-0000Eu-34 for pgsql-general@lists.postgresql.org; Thu, 15 Dec 2022 14:48:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p5pX2-0006a8-Km for pgsql-general@lists.postgresql.org; Thu, 15 Dec 2022 14:48:26 +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 2BFEmF2p3352043; Thu, 15 Dec 2022 09:48:15 -0500 From: Tom Lane To: Willy-Bas Loos cc: Laurenz Albe , pgsql-general Subject: Re: tcp keepalives not sent during long query In-reply-to: References: <2707299.1671039504@sss.pgh.pa.us> Comments: In-reply-to Willy-Bas Loos message dated "Thu, 15 Dec 2022 08:31:30 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3352041.1671115695.1@sss.pgh.pa.us> Date: Thu, 15 Dec 2022 09:48:15 -0500 Message-ID: <3352042.1671115695@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Willy-Bas Loos writes: > It gives me a confirmation, but then when I SHOW the value, it gives me 0. > wbloos=# set tcp_keepalives_idle=120; > SET > wbloos=# show tcp_keepalives_idle; > tcp_keepalives_idle > --------------------- > 0 > (1 row) That's the behavior I'd expect on a local (Unix-socket) connection ... you sure you're doing this from one of the problematic clients? regards, tom lane