Re: Add client connection check during the execution of the query
Tatsuo Ishii <ishii@sraoss.co.jp>
From: Tatsuo Ishii <ishii@sraoss.co.jp>
To: thomas.munro@gmail.com
Cc: s.cherkashin@postgrespro.ru, tgl@sss.pgh.pa.us,
pgsql-hackers@postgresql.org
Date: 2019-07-05T06:42:04Z
Lists: pgsql-hackers
> This seems like a reasonable idea to me. There is no point in running > a monster 24 hour OLAP query if your client has gone away. It's using > MSG_PEEK which is POSIX, and I can't immediately think of any reason > why it's not safe to try to peek at a byte in that socket at any time. I am not familiar with Windows but I accidentally found this article written by Microsoft: https://support.microsoft.com/en-us/help/192599/info-avoid-data-peeking-in-winsock It seems using MSG_PEEK is not recommended by Microsoft. Best regards, -- Tatsuo Ishii SRA OSS, Inc. Japan English: http://www.sraoss.co.jp/index_en.php Japanese:http://www.sraoss.co.jp
Commits
-
Add WL_SOCKET_CLOSED for socket shutdown events.
- 50e570a59e7f 15.0 landed
-
Use WL_SOCKET_CLOSED for client_connection_check_interval.
- cba5b994c990 15.0 landed
-
Detect POLLHUP/POLLRDHUP while running queries.
- c30f54ad732c 14.0 landed
-
Improve timeout.c's handling of repeated timeout set/cancel.
- 09cf1d522676 14.0 cited