Re: [HACKERS] Latent cache flush hazard in RelationInitIndexAccessInfo

2016-05-23 Thread Tom Lane
Michael Paquier writes: > On Fri, Sep 11, 2015 at 11:29 AM, Robert Haas wrote: >> On Wed, Sep 9, 2015 at 3:00 PM, Tom Lane wrote: >>> The specific reason there's a problem is that there's a disconnect between >>> RelationClearRelation's test for whether a relcache entry has valid index >>> info

Re: [HACKERS] Latent cache flush hazard in RelationInitIndexAccessInfo

2016-05-21 Thread Michael Paquier
On Fri, Sep 11, 2015 at 11:29 AM, Robert Haas wrote: > On Wed, Sep 9, 2015 at 3:00 PM, Tom Lane wrote: >> Some stuff Salesforce has been doing turned up the fact that >> RelationInitIndexAccessInfo is not safe against a relcache flush on >> its target index. Specifically, the failure goes like t

Re: [HACKERS] Latent cache flush hazard in RelationInitIndexAccessInfo

2015-09-11 Thread Robert Haas
On Wed, Sep 9, 2015 at 3:00 PM, Tom Lane wrote: > Some stuff Salesforce has been doing turned up the fact that > RelationInitIndexAccessInfo is not safe against a relcache flush on > its target index. Specifically, the failure goes like this: > > * RelationInitIndexAccessInfo loads up relation->r

[HACKERS] Latent cache flush hazard in RelationInitIndexAccessInfo

2015-09-09 Thread Tom Lane
Some stuff Salesforce has been doing turned up the fact that RelationInitIndexAccessInfo is not safe against a relcache flush on its target index. Specifically, the failure goes like this: * RelationInitIndexAccessInfo loads up relation->rd_indextuple. * Within one of the subsequent catalog fetc