Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezEQW-0006Dq-06 for pgsql-general@arkaria.postgresql.org; Fri, 23 Mar 2018 04:35:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ezEQU-0005XF-Ls for pgsql-general@arkaria.postgresql.org; Fri, 23 Mar 2018 04:35:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezEQT-0005X6-RH for pgsql-general@lists.postgresql.org; Fri, 23 Mar 2018 04:35:38 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezEQQ-0008VL-Gy for pgsql-general@lists.postgresql.org; Fri, 23 Mar 2018 04:35:36 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id E3C351118; Fri, 23 Mar 2018 00:35:31 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Fri, 23 Mar 2018 00:35:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=bOArCWAz9NocylAeCjyGUvIyIhCLiP0Cf2fgPj2ltKM=; b=R3+AzC/s bPZwqABE4g10TcPro0qChgQpNWaxGz53Nvunw9IExxP6fbZo3cwJi7rmiKUvh7FW pF86LyYkPypf4HtzYFxlRXy1jU/9suK/8qxJxMpwmOd5MGwrcWPJYFuyG+jkue1I mId5KCQjw09iHaJdJb5tH+LUBr6QMPFy/GZFnxreOU3BzKlX6y6ye57radmdNGBM rTf3ce2PnJY2UQp3Fa8rTfn3ziafJiQ1HRWwr+7mGyKWysuCUboSIq4Tsy1q8k0+ unExg+3vfTj59GXSOUh6RbY+Hk32SEyAp5hjH26bHrQiONSVllZyFOpYxalDhNrR vlHHFylZS5vTjw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=bOArCWAz9NocylAeCjyGUvIyIhCLi P0Cf2fgPj2ltKM=; b=ZPt1/3rMlwOzSCGRAkONllgUBjbOpVo+lvbQmwgjOsHyU Sr7607kPcr31GRHR24Lmn4Id419TFOqG2bRAZ1lzaoeHA5Ru29CM+01SldeFl0ti 7dFGZeUpbhsrabpWhp/FCORyHkaScfLvXbAMSoTlKlMHANbD0UDkli8F7+XBCRvr groav03EjioVDCXijveZt/ZZOCJe/FPF4i+TGUBjkTrQQde1GQ3O6+AQkhNHH9fv 1XMzumhdIKU+BiRSrPMaIurTccz0ZFBTd5H6mKhnylFuxtbbpuyVsBYIncCg8+DZ 6cS66VyzL/jkTQuvK7KsPSvSm7Q0c8OIlNclB5CLA== X-ME-Sender: Received: from paquier.xyz (mp76f1f905.ap.nuro.jp [118.241.249.5]) by mail.messagingengine.com (Postfix) with ESMTPA id C6BBB7E0F0; Fri, 23 Mar 2018 00:35:29 -0400 (EDT) Date: Fri, 23 Mar 2018 13:35:26 +0900 From: Michael Paquier To: Tom Lane Cc: Albrecht =?iso-8859-1?Q?Dre=DF?= , Adrian Klaver , pgsql-general@lists.postgresql.org Subject: Re: FDW Foreign Table Access: strange LOG message Message-ID: <20180323043334.GC1724@paquier.xyz> References: <4004.1521759312@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn" Content-Disposition: inline In-Reply-To: <4004.1521759312@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Mar 22, 2018 at 06:55:12PM -0400, Tom Lane wrote: > Anyway, it's clearly not very nice that postgres_fdw makes no attempt > to do a graceful shutdown of its remote connection. I don't know that > this rises to the level of a bug, exactly, but if somebody wanted to > send in a patch it'd probably get accepted. I won't qualify that as a bug, this is mainly noise. Still I agree that it would be cleaner to make more efforts in finishing the connections when the session goes down. You would roughly just need to register an on_shmem_exit callback which loops through all the connections to finish them. Now would we want to slow down the session shutdown just for that? I am less sure particularly if there is lag between the remote and the local servers. -- Michael --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlq0hA4ACgkQnvQgOdby QH1kQhAAnDjD5Z1u6LcyCY4geHPvr4sVlzrA04Cjafaxff4M8jovFKRcZ3xh4psl E4XhTe42hzvebAtiz8WTZXU6qejrhb4kE3wcxvUIWsVDlaipaxG3XMe/ckrMk5Mb 33+fwcgYw1zSB6zyVvMgcyIqMbcEdQ7RBukp+PtsUpG0kzFjyZxHtqYuddDbTbOT 1HILCpUQFWt7Y7I8CjNdhWf/8zKClYlXRZcc9qOJKWoxufzZIKH30JQRIQRCKPMl In7AT0bklsj5VKWZGym1/PWpJM6BW2F6uIcCvORInPesWxCfi0FOv4PTDGPMRj9w +3x05X1kYjSyokPxzK0BPn825Lc4tkHcdduErIoItxKGRHSssu+lGXnyZfROuWJ6 b9EnTwVVKzxN7H+qlWAbacviFOGiNsJ7XuFJ7ybuHqGPQYmOBYt/83NXrZijYxvk +8xVxr56Ip7GspNIonFdNuMkRvdMSuL80Y2ODlAJUuQ184TgBD3FZAo36cVahuYy bh4+1OQdfFeTtCXf/s6W2kL9YtB7/Lkz+lCW1JexGzafJWs09r3lj/ZvyaaMQIah oXuh7JdDuoZHweVzeYAoOAB/XLBgZwp3kkcZhohd4VfQ2PCfl42VyPCKl4yuDkkF LvgOuCOHbODBiS2lsvoEBc7zZFLXx5I7wY6geMQeMat5Jpai+CM= =Ob6c -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn--