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 1l4Ij4-00032r-7p for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Jan 2021 07:25:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l4IiX-0006Vi-JK for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Jan 2021 07:24:49 +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 1l4IiX-0006Vb-Ch for pgsql-hackers@lists.postgresql.org; Tue, 26 Jan 2021 07:24:49 +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 1l4IiV-000166-92 for pgsql-hackers@lists.postgresql.org; Tue, 26 Jan 2021 07:24:49 +0000 Received: from hnk.local (p2112118-ipbf2507funabasi.chiba.ocn.ne.jp [123.216.63.118]) by oss.nttdata.com (Postfix) with ESMTPSA id A94AE6240A; Tue, 26 Jan 2021 16:24:43 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.3 at oss.nttdata.com Subject: Re: [PATCH] postgres_fdw connection caching - cause remote sessions linger till the local session exit To: Tom Lane Cc: Bharath Rupireddy , Zhihong Yu , Alexey Kondratov , "Hou, Zhijie" , PostgreSQL Hackers References: <646119f3-fd27-7fd7-5377-b72310af5d21@oss.nttdata.com> <62431587-ed3a-f333-51a9-967ccf2a78db@oss.nttdata.com> <1c643738-6e52-565d-0261-740d490b550e@oss.nttdata.com> <09b3f740-896d-7507-95e1-d2afd87daf2e@oss.nttdata.com> <64ee084b-1368-e044-debd-69cc156276c6@oss.nttdata.com> <39259f30-897c-ceaf-8a1e-78fe2db398cb@oss.nttdata.com> <2f66a719-4ba6-2772-8762-9928788c6e50@os! s.nttdata.com> <2147113.1611644754@sss.pgh.pa.us> From: Fujii Masao Message-ID: <1b4d7c4f-a9f9-08f0-295d-de6ec0d5def5@oss.nttdata.com> Date: Tue, 26 Jan 2021 16:24:43 +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: <2147113.1611644754@sss.pgh.pa.us> 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 16:05, Tom Lane wrote: > Fujii Masao writes: >> Thanks for the review! I fixed them and pushed the patch! > > Buildfarm is very not happy ... Yes.... I'm investigating that. -- Return false as connections are still in use, warnings are issued. SELECT postgres_fdw_disconnect_all(); -WARNING: cannot close dropped server connection because it is still in use -WARNING: cannot close connection for server "loopback" because it is still in use WARNING: cannot close connection for server "loopback2" because it is still in use +WARNING: cannot close connection for server "loopback" because it is still in use +WARNING: cannot close dropped server connection because it is still in use The cause of the regression test failure is that the order of warning messages is not stable. So I'm thinking to set client_min_messages to ERROR temporarily when doing the above test. Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION