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 1l4IPp-0002C5-2S for pgsql-committers@arkaria.postgresql.org; Tue, 26 Jan 2021 07:05:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l4IPn-0007kA-U1 for pgsql-committers@arkaria.postgresql.org; Tue, 26 Jan 2021 07:05:27 +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 1l4IPn-0007k1-Oi for pgsql-committers@lists.postgresql.org; Tue, 26 Jan 2021 07:05:27 +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 1l4IPk-0000wl-So for pgsql-committers@lists.postgresql.org; Tue, 26 Jan 2021 07:05:26 +0000 Received: from hnk.local (p2112118-ipbf2507funabasi.chiba.ocn.ne.jp [123.216.63.118]) by oss.nttdata.com (Postfix) with ESMTPSA id BC6146028D; Tue, 26 Jan 2021 16:05:18 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.3 at oss.nttdata.com Subject: Re: pgsql: postgres_fdw: Add functions to discard cached connections. To: Fujii Masao , pgsql-committers@lists.postgresql.org References: From: Fujii Masao Message-ID: <68802f97-4eaf-ff8e-be3e-698cd4d50d28@oss.nttdata.com> Date: Tue, 26 Jan 2021 16:05:16 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2021/01/26 15:37, Fujii Masao wrote: > postgres_fdw: Add functions to discard cached connections. > > This commit introduces two new functions postgres_fdw_disconnect() > and postgres_fdw_disconnect_all(). The former function discards > the cached connections to the specified foreign server. The latter discards > all the cached connections. If the connection is used in the current > transaction, it's not closed and a warning message is emitted. > > For example, these functions are useful when users want to explicitly > close the foreign server connections that are no longer necessary and > then to prevent them from eating up the foreign servers connections > capacity. Hmm... this commit causes the buildfarm members to fail. I'm looking at the issue. Regards. -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION