Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yqnf9-00036e-6I for pgsql-hackers@arkaria.postgresql.org; Fri, 08 May 2015 19:10:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yqnf7-0007gl-T3 for pgsql-hackers@arkaria.postgresql.org; Fri, 08 May 2015 19:10:17 +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 1Yqnez-0007TY-4M for pgsql-hackers@postgresql.org; Fri, 08 May 2015 19:10:09 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Yqnev-00044W-TM for pgsql-hackers@postgresql.org; Fri, 08 May 2015 19:10:07 +0000 Received: from intern.anarazel.de (unknown [184.23.178.130]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id CACA5860003; Fri, 8 May 2015 21:10:00 +0200 (CEST) Date: Fri, 8 May 2015 21:09:57 +0200 From: Andres Freund To: Tom Lane Cc: Peter Geoghegan , Heikki Linnakangas , Jeff Janes , Stephen Frost , Dean Rasheed , Bruce Momjian , Pg Hackers Subject: Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0 Message-ID: <20150508190957.GW12950@alap3.anarazel.de> References: <9096.1431102730@sss.pgh.pa.us> <20150508165246.GO12950@alap3.anarazel.de> <10633.1431105922@sss.pgh.pa.us> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18313.1431111562@sss.pgh.pa.us> X-Pg-Spam-Score: -2.7 (--) 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 On 2015-05-08 14:59:22 -0400, Tom Lane wrote: > Andres Freund writes: > > I think Peter (on IM) just found a more likely explanation than mine. > > index_close(idxRel, NoLock); > > heap_close(relation, NoLock); > > candidates = lappend_oid(candidates, idxForm->indexrelid); > > ... > > Yes. idxForm points into idxRel->rd_index. > > Ooops. But shouldn't that have failed 100% of the time in a CCA build? > Or is the candidates list fairly noncritical? Afaics RELCACHE_FORCE_RELEASE is independent of CCA (should we change that?). So this probably a bug, just not a relevant bug. I can't see how it'd take affect in this case. Greetings, Andres Freund -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers