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 1ekcde-0005Tg-JP for pgsql-hackers@arkaria.postgresql.org; Sat, 10 Feb 2018 21:24:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekcdc-0003B4-UM for pgsql-hackers@arkaria.postgresql.org; Sat, 10 Feb 2018 21:24:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ekcdc-0003Au-NZ for pgsql-hackers@lists.postgresql.org; Sat, 10 Feb 2018 21:24:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ekcdU-0006zx-SK for pgsql-hackers@postgresql.org; Sat, 10 Feb 2018 21:24:48 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w1ALOVuY018654; Sat, 10 Feb 2018 16:24:31 -0500 From: Tom Lane To: Robert Haas cc: Etsuro Fujita , Pg Hackers , Rushabh Lathia , Michael Paquier , Ashutosh Bapat Subject: Re: postgres_fdw: perform UPDATE/DELETE .. RETURNING on a join directly In-reply-to: References: <5A438A45.2000909@lab.ntt.co.jp> <5A57193A.2080003@lab.ntt.co.jp> <6166.1518044513@sss.pgh.pa.us> <5A7BE8E6.200@lab.ntt.co.jp> <28606.1518105934@sss.pgh.pa.us> <5A7CFDDA.8050906@lab.ntt.co.jp> <5A7D76CF.8080601@lab.ntt.co.jp> <20134.1518201188@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Fri, 09 Feb 2018 15:24:26 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18652.1518297871.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 10 Feb 2018 16:24:31 -0500 Message-ID: <18653.1518297871@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Robert Haas writes: > On Fri, Feb 9, 2018 at 1:33 PM, Tom Lane wrote: >> Robert Haas writes: >>> Me neither. I just ran the postgres_fdw regression tests 713 times in >>> a row without a failure. Tom, since you seem to be able to reproduce >>> the problem locally, could you have a look at this proposed fix? >> I'm a bit busy, but AFAICS it's just a timing thing, so try inserting >> a sleep. The attached is enough to reproduce rhinoceros' results >> for me. > Not for me, but when I pushed the pg_sleep up to 180 seconds, then it fa= iled. > With the proposed patch, it passes repeatedly for me with no sleep, > and also passes for me with the sleep. So I guess I'll commit this > and see what the buildfarm thinks. FWIW, I ran a thousand cycles of postgres_fdw installcheck without seeing further problems. So this fixes it at least for my configuration. However, jaguarundi still shows a problem: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Djaguarundi&dt=3D= 2018-02-10%2008%3A41%3A32 (previous run similar, so it's semi-reproducible even after this patch). jaguarundi uses -DCLOBBER_CACHE_ALWAYS, so you might try a few repetitions with that. regards, tom lane