pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Lars Vonk <lars.vonk@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15074: psql client never returns when creating index (long running operation)
Date: Tue, 20 Feb 2018 18:35:18 +0000
Message-ID: <87sh9vo714.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <CAMX1ThhM_5tsAS7JFdpj3Dw_F6SR3-MXFJwUk0Xmh3WXbP7HFA@mail.gmail.com>
References: <151902880834.1393.3975169520725435333@wrigleys.postgresql.org>
	<87h8qdp3qr.fsf@news-spur.riddles.org.uk>
	<CAMX1ThhM_5tsAS7JFdpj3Dw_F6SR3-MXFJwUk0Xmh3WXbP7HFA@mail.gmail.com>

>>>>> "Lars" == Lars Vonk <lars.vonk@gmail.com> 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)




view thread (6+ messages)

Message-ID: <87sh9vo714.fsf@news-spur.riddles.org.uk>
Permalink:  ../87sh9vo714.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87sh9vo714.fsf@news-spur.riddles.org.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andrew@tao11.riddles.org.uk, lars.vonk@gmail.com
  Subject: Re: BUG #15074: psql client never returns when creating index (long running operation)
  In-Reply-To: <87sh9vo714.fsf@news-spur.riddles.org.uk>
  References: <151902880834.1393.3975169520725435333@wrigleys.postgresql.org> <87h8qdp3qr.fsf@news-spur.riddles.org.uk> <CAMX1ThhM_5tsAS7JFdpj3Dw_F6SR3-MXFJwUk0Xmh3WXbP7HFA@mail.gmail.com> <87sh9vo714.fsf@news-spur.riddles.org.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox