From: | "Jamison, Kirk" <k(dot)jamison(at)jp(dot)fujitsu(dot)com> |
---|---|
To: | "Tsunakawa, Takayuki" <tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com>, "Nagaura, Ryohei" <nagaura(dot)ryohei(at)jp(dot)fujitsu(dot)com> |
Cc: | 'Michael Paquier' <michael(at)paquier(dot)xyz>, "AYahorau(at)ibagroup(dot)eu" <AYahorau(at)ibagroup(dot)eu>, 'Fabien COELHO' <coelho(at)cri(dot)ensmp(dot)fr>, "'pgsql-hackers(at)postgresql(dot)org'" <pgsql-hackers(at)postgresql(dot)org>, "MikalaiKeida(at)ibagroup(dot)eu" <MikalaiKeida(at)ibagroup(dot)eu> |
Subject: | RE: Timeout parameters |
Date: | 2019-02-22 01:28:41 |
Message-ID: | D09B13F772D2274BB348A310EE3027C643E30D@g01jpexmbkw24 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Friday, February 22, 2019 9:46 AM (GMT+9), Tsunakawa, Takayuki wrote:
> > Terminate any session that has been idle for more than the
> > specified number of seconds to prevent client from infinite
> > waiting for server due to dead connection. This can be used both as a
> > brute force global query timeout and detecting network problems.
> > A value of zero (the default) turns this off.
>
> Looks better than the original one. However,
>
> * The unit is not millisecond, but second.
> * Doesn't restart the session.
> * Choose words that better align with the existing libpq parameters.
> e.g. "connection" should be used instead of "session" as in
> keepalive_xxx parameters, because there's not a concept of database
> session at socket level.
> * Indicate that the timeout is for individual socket operations.
My bad. I was looking at the wrong documentations, so seconds should be used.
I guess we should just choose socket_timeout as parameter name.
socket_timeout (integer)
Terminate any connection that has been inactive for more than the specified number of seconds to prevent client from infinite waiting for individual socket read operations due to dead connection. This can be used both as a force global query timeout and network problems detector. A value of zero (the default) turns this off.
or
Controls the number of seconds of connection inactivity to prevent client from infinite waiting for individual socket read operations due to dead connection. This can be used both as a force global query timeout and network problems detector. A value of zero (the default) turns this off.
Regards,
Kirk Jamison
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2019-02-22 01:40:36 | Re: pg_dump multi VALUES INSERT |
Previous Message | Kyotaro HORIGUCHI | 2019-02-22 01:12:51 | Re: [HACKERS] Restricting maximum keep segments by repslots |