Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hH7Ne-0000y7-Dg for pgsql-general@arkaria.postgresql.org; Thu, 18 Apr 2019 13:47:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hH7Nd-0000pf-1k for pgsql-general@arkaria.postgresql.org; Thu, 18 Apr 2019 13:47:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hH7Nc-0000pY-OV for pgsql-general@lists.postgresql.org; Thu, 18 Apr 2019 13:47:08 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hH7Na-00035H-9J for pgsql-general@postgresql.org; Thu, 18 Apr 2019 13:47:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x3IDktHr030893; Thu, 18 Apr 2019 09:46:55 -0400 From: Tom Lane To: Ajay Pratap cc: Francisco Olarte , Adrian Klaver , Postgres General Subject: Re: PostgreSQL ping/pong to client In-reply-to: References: <70c44319-1ff8-8d26-ceba-db2b20d8496d@aklaver.com> Comments: In-reply-to Ajay Pratap message dated "Thu, 18 Apr 2019 08:17:47 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30891.1555595215.1@sss.pgh.pa.us> Date: Thu, 18 Apr 2019 09:46:55 -0400 Message-ID: <30892.1555595215@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ajay Pratap writes: > Enabling system wise timeouts can impact my whole setup including my web > app, thats why it is hard for me to configure them. Uh ... who said anything about system-wide timeouts? The normal way to set this up is to configure the tcp_keepalives_xxx PG parameters, which will be applied to connections to the Postgres server, nothing else. regards, tom lane