Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gZ7YU-0001Cc-QZ for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Dec 2018 05:04:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gZ7YT-0000VW-5x for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Dec 2018 05:04:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gZ7YS-0000VP-Si for pgsql-bugs@lists.postgresql.org; Tue, 18 Dec 2018 05:04:29 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gZ7YQ-00012I-9v for pgsql-bugs@lists.postgresql.org; Tue, 18 Dec 2018 05:04:27 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 7B2E0220A5; Tue, 18 Dec 2018 00:04:25 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 18 Dec 2018 00:04:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=ETPonKuFWo0tU4T4gfK9yVs3Umy PhB6WnvNRuZIeU8w=; b=S1Lx3bR/tNFQoLn4ml2lmTzJIQiTu2rpnAFR0XQ+460 EqqgXcQlLA7X2eDuUWznOxCrB/7qLwLyhmW+UtTxaVNLQmgF5g75wtMME0YSNLjO Bt1FTQ3nkPeNEktkbIX+ZpPk9GY+0U5ecHbTQ7dLtSh3J6z4Z61Is3cdPMQMbu28 wpn6mAMiOBfaDhogJBoXvzDs3hM/50wjnENswCPDFTYV3ao7YdgpVtcpPrjkMEAa i7ObiatBUAlHNovYjvMlRWPwENv6LlMpRVlU4vsjwPWDLS9bNX3WKJJi/hBlVXU6 1sLoB7Oemj3chvjFVlCKyNIUbGRX62OlTbY58gev/Vw== 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-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=ETPonK uFWo0tU4T4gfK9yVs3UmyPhB6WnvNRuZIeU8w=; b=O/JORaVyQXU9rpAu8XYwMK /NgTV8YzwottPXj1fE4D2Tfqiz2L4H2RMCsql/QiIfnRanywlZS96/nX2LCqRvDx khAZgO4ScUwpAqJ3Gg1KO0ee8yMzWdAJjzhaDrjXdSBrfZpPsdWN84gYFMYmS4d3 wnSuMZqKUqpBt9abxDi4iIssZW0majVym3eCcDu88miO2hRFfx5cd2q364arCSSz d7CxBhIhFT51JPv9/QMEAsKe8kMbqGlaGWuYHI7UMjkzf8wPNvRSMl38BZquyL25 CU3K0toDzO63uzDscxe0PX3Nru7jLM5TYQKy71xTFkUPxdEZ9zIKAr+L/vOkLl4w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtkedrudeigedgkedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdefhe dmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgt hhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqne cuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucfkphepiedurddvudehrddu feejrdduiedvnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquh hivghrrdighiiinecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 3830510084; Tue, 18 Dec 2018 00:04:22 -0500 (EST) Date: Tue, 18 Dec 2018 14:04:19 +0900 From: Michael Paquier To: Amit Langote Cc: Luis Carril , "pgsql-bugs@lists.postgresql.org" , PG Bug reporting form Subject: Re: BUG #15552: Unexpected error in COPY to a foreign table in a transaction Message-ID: <20181218050419.GJ1532@paquier.xyz> References: <15552-c64aa14c5c22f63c@postgresql.org> <8e82d10d-cc16-eed4-7634-3654f59d8053@lab.ntt.co.jp> <30718b48-8020-329a-c6f0-74e1222e5283@lab.ntt.co.jp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FCKy2vjPBX+S/5dE" Content-Disposition: inline In-Reply-To: <30718b48-8020-329a-c6f0-74e1222e5283@lab.ntt.co.jp> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --FCKy2vjPBX+S/5dE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 18, 2018 at 12:24:54PM +0900, Amit Langote wrote: > I noticed that too. As you say, it is not possible to exercise a test we > might add for this with `make check`, because it runs with a fixed value > of wal_level (=3D replica). But it is possible with `make installcheck` = on > a cluster that's running with wal_level =3D minimal. Maybe, something li= ke > this: > > [...] >=20 > From the above output, your patch will make "ERROR: could not open file > xxx" go away. Last time we discussed about adding a test case in this area, we came up with a TAP test, so this could apply here as well: https://www.postgresql.org/message-id/f20181114.124736.206988673.horiguchi.= kyotaro@lab.ntt.co.jp What scares me a lot about complicating this code is that we are not seeing the end of it with this so-said optimization in removing the relfilenode like that... There are other fancy cases where the failure can happen (please see patch 0001). -- Michael --FCKy2vjPBX+S/5dE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlwYf9MACgkQnvQgOdby QH05Lw/9GBaH5fUllAJgYDSltHRLKCYSDxiGaZk0dz1q2eZ7dHELeB5ZvMRCnarw EoT6njDGYVQTNGHaXiCxQzIxNZEY1ZUYW51VSKKXiAyz5PQTfN+g3fgH1KKiSREg UhUs8oahSh4l/F9nJmflUpNreo02Ict6Bdw42joA+2wndmybKh0GZxfNuToWEKjP 5ETyJCb3RQcmzinQtAHVDvxYoXxcve1LI4e5ONHIP6RVCr84Vhwi1yBPsg5QZKY3 GvWGt84YLZM15KYiCAXMHqR0Zgdorb+dQz7Ewqu0vXWzLdMjKCnN6GCFYAhMUPqw 7K1u/CODRabdOcvagjBmxMAfRX5az41W7Fn9l8GURBx/WmSTgHojurDqLHbs0bXV XoItuJcJ35MRD3bWG/up6XLcWaRtaONeE1/KiEo7cZ1I+/4pehdMeJ5s0dv+8I3h hUa4Z5RacuP5FVLZss3idgDm8M5RqoWU2SMwFrjmbbLesiz5WDduWEYvzKroA37n IzCcumY5diTL25kdHYibksxhv2HE6ecaN6brdea8Np7ZwzHyF47XSSs0G0ckq6TZ c/71stLfWfekRA6yKd3vEqVWg/SgFdJDoGKrhE8xzocLTEWudLXGQOiLs4JNGeS5 gG2N82SJSBqd3lRheKEYYJMr7ml1013l7MzNby55zxkJMxyxQYY= =G+xL -----END PGP SIGNATURE----- --FCKy2vjPBX+S/5dE--