Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0 - Mailing list pgsql-hackers

From Andres Freund
Subject Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0
Date
Msg-id 20150508190957.GW12950@alap3.anarazel.de
Whole thread Raw
In response to Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2015-05-08 14:59:22 -0400, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> 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



pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0
Next
From: Tom Lane
Date:
Subject: Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0