Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eoClG-0001hG-My for pgsql-bugs@arkaria.postgresql.org; Tue, 20 Feb 2018 18:35:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eoClF-0005zB-AF for pgsql-bugs@arkaria.postgresql.org; Tue, 20 Feb 2018 18:35:29 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eoClF-0005yD-4t for pgsql-bugs@lists.postgresql.org; Tue, 20 Feb 2018 18:35:29 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eoCl7-0002tK-RP for pgsql-bugs@lists.postgresql.org; Tue, 20 Feb 2018 18:35:28 +0000 Received: from [192.168.127.1] (port=17975 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1eoCl5-0008m7-CF; Tue, 20 Feb 2018 18:35:19 +0000 Received: from [127.0.0.1] (port=22563 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1eoCl4-0003ix-MF; Tue, 20 Feb 2018 18:35:18 +0000 From: Andrew Gierth To: Lars Vonk Cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15074: psql client never returns when creating index (long running operation) In-Reply-To: (Lars Vonk's message of "Tue, 20 Feb 2018 17:52:35 +0000") Message-ID: <87sh9vo714.fsf@news-spur.riddles.org.uk> References: <151902880834.1393.3975169520725435333@wrigleys.postgresql.org> <87h8qdp3qr.fsf@news-spur.riddles.org.uk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Tue, 20 Feb 2018 18:35:18 +0000 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Lars" == Lars Vonk writes: Lars> Hi, Lars> Thanks for replying. I will double check the network settings, Lars> but couldn't find anything. I've seen this so many times that I'd bet a fair sum on it. Lars> Are there any psql / postgres settings I can check, I couldn't Lars> find any that might be affecting this. The only relevant pg settings are the tcp_keepalives_* ones, which (on operating systems that support this, i.e. not Windows) cause pg to request a different keepalive timeout from the OS's default. Note that OS defaults themselves default to a bit over 2 hours unless you explicitly configure something else. Likewise on the client side, if you are using an OS that supports it, you can use keepalives_idle= in the connection string. -- Andrew (irc:RhodiumToad)