Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yqnqy-0003Zg-Kv for pgsql-hackers@arkaria.postgresql.org; Fri, 08 May 2015 19:22:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yqnqx-0005KF-RK for pgsql-hackers@arkaria.postgresql.org; Fri, 08 May 2015 19:22:31 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yqnqw-0005K8-KB for pgsql-hackers@postgresql.org; Fri, 08 May 2015 19:22:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Yqnqu-0004La-Cb for pgsql-hackers@postgresql.org; Fri, 08 May 2015 19:22:29 +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 t48JM9RR019214; Fri, 8 May 2015 15:22:09 -0400 From: Tom Lane To: Stephen Frost cc: Peter Geoghegan , Andres Freund , Heikki Linnakangas , Jeff Janes , Dean Rasheed , Bruce Momjian , Pg Hackers Subject: Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0 In-reply-to: <20150508191600.GA30322@tamriel.snowman.net> References: <554CF44B.3080808@iki.fi> <20150508180636.GR12950@alap3.anarazel.de> <20150508181445.GS12950@alap3.anarazel.de> <17473.1431109846@sss.pgh.pa.us> <20150508183504.GU12950@alap3.anarazel.de> <18313.1431111562@sss.pgh.pa.us> <18691.1431112058@sss.pgh.pa.us> <18911.1431112384@sss.pgh.pa.us> <20150508191600.GA30322@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Fri, 08 May 2015 15:16:00 -0400" Date: Fri, 08 May 2015 15:22:09 -0400 Message-ID: <19213.1431112929@sss.pgh.pa.us> X-Pg-Spam-Score: -0.4 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Stephen Frost writes: > * Tom Lane (tgl@sss.pgh.pa.us) wrote: >> Actually, looking closer, the quoted code is simply not broken without >> RELCACHE_FORCE_RELEASE: without that, neither heap_close nor index_close >> will do anything that could cause a cache flush. So while it's certainly >> good pratice to move that lappend_oid call up, it does not explain the >> observed symptoms. We still need some more investigation here. > Couldn't a cache flush request come from another backend? Although this > isn't being run in a parallel group, is it? Maybe a delayed signal that > happens to show up late at just the right time? Dunno if we've ever > actually seen that but the thought occured to me. A signal could certainly have arrived in that interval, but it wouldn't be serviced in that interval --- or if it was, we have far worse problems than this one. Nothing interesting should happen except at (at least) a CHECK_FOR_INTERRUPTS() point, and there is none in this code sequence. I'm back to suspecting that the indcheckxmin issue is the true cause of the buildfarm failure, though we lack an explanation why Andres failed to reproduce it ... regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers