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 1pZMb2-0007sZ-Tt for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Mar 2023 01:58:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pZMb1-0001xb-BV for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Mar 2023 01:58:31 +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 1pZMb1-0001xS-1Z for pgsql-hackers@lists.postgresql.org; Tue, 07 Mar 2023 01:58:31 +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 1pZMax-0007Qn-Kk for pgsql-hackers@lists.postgresql.org; Tue, 07 Mar 2023 01:58:30 +0000 Received: from oss.nttdata.com (localhost [127.0.0.1]) by oss.nttdata.com (Postfix) with ESMTPA id F3A2360199; Tue, 7 Mar 2023 10:58:21 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at oss.nttdata.com MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 07 Mar 2023 10:58:21 +0900 From: Katsuragi Yuta To: "Hayato Kuroda (Fujitsu)" Cc: 'Ted Yu' , Tom Lane , vignesh C , pgsql-hackers@lists.postgresql.org, =?UTF-8?Q?=C3=96nder_Kalac=C4=B1?= , Fujii Masao , Shinya11.Kato@oss.nttdata.com, Kyotaro Horiguchi Subject: Re: [Proposal] Add foreign-server health checks infrastructure In-Reply-To: References: <3cb43b39672c17786566063b0aa1225d@oss.nttdata.com> User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: katsuragiy@oss.nttdata.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Kuroda-san, Thank you for updating the patch! I think we can update the status to ready for committer after this fix, if there is no objection. >> 7. the document of postgres_fdw_verify_connection_states_all >> NULL >> + is returned if the local session does not have connection >> caches, >> or this >> + function is not available on this platform. >> >> I think there is a case where a connection cache exists but valid >> connections do not exist and NULL is returned (disconnection case). >> Almost the same document as the postgres_fdw_verify_connection_states >> case (comment no.5) seems better. > > Yes, but completely same statement cannot be used because these is not > specified foreign server. How about: > NULL is returned if there are no established connections or this > function ... Yes, to align with the postgres_fdw_verify_connection_states() case, how about writing the connection is not valid. Like the following? 'NULL is returned if no valid connections are established or this function...' This is my comment for v35. Please check. 0002: 1. the comment of verify_cached_connections (I missed one minor point.) + * This function emits warnings if a disconnection is found. This returns true + * if disconnections cannot be found, otherwise returns false. I think false is returned only if disconnections are found and true is returned in all other cases. So, modifying the description like the following seems better. 'This returns false if disconnections are found, otherwise returns true.' regards, -- Katsuragi Yuta Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION