Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n9qci-0007qX-FD for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Jan 2022 15:42:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n9qcg-0001MO-Q9 for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Jan 2022 15:42:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n9qcg-0001M5-Gu for pgsql-hackers@lists.postgresql.org; Tue, 18 Jan 2022 15:42:14 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n9qcd-0007ac-UO for pgsql-hackers@lists.postgresql.org; Tue, 18 Jan 2022 15:42:14 +0000 Received: from [192.168.11.9] (p2019072-ipbf2307funabasi.chiba.ocn.ne.jp [122.30.130.72]) by oss.nttdata.com (Postfix) with ESMTPSA id E8F916084B; Wed, 19 Jan 2022 00:42:05 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.4 at oss.nttdata.com Message-ID: Date: Wed, 19 Jan 2022 00:42:05 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [Proposal] Add foreign-server health checks infrastructure Content-Language: en-US To: "kuroda.hayato@fujitsu.com" , 'Shinya Kato' Cc: "pgsql-hackers@lists.postgresql.org" , "zyu@yugabyte.com" References: <54449d7bea79263e937266ad6ebc65b3@oss.nttdata.com> <4e64bb8a0a88f5b6ac5a8901377c81af@oss.nttdata.com> From: Fujii Masao In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021/12/15 15:40, kuroda.hayato@fujitsu.com wrote: > Yeah, remote-checking timeout will be enable even ifa local transaction is opened. > In my understanding, postgres cannot distinguish whether opening transactions > are using only local object or not. > My first idea was that turning on the timeout when GetFdwRoutineXXX functions > were called, What about starting the timeout in GetConnection(), instead? > I attached which implements that. v05_0004_add_tests.patch failed to be applied to the master. Could you rebase it? - This option is currently available only on systems that support the - non-standard POLLRDHUP extension to the - poll system call, including Linux. + This option relies on kernel events exposed by Linux, macOS, illumos + and the BSD family of operating systems, and is not currently available + on other systems. The above change is included in both v5-0003-Use-WL_SOCKET_CLOSED-for-client_connection_check_.patch and v05_0002_add_doc.patch. If it should be in the former patch, it should be removed from your patch v05_0002_add_doc.patch. There seems no user of UnregisterCheckingRemoteServersCallback(). So how about removing it? Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION