Re: Allow table AM's to cache stuff in relcache

2019-07-30 Thread Heikki Linnakangas
On 12/07/2019 16:07, Julien Rouhaud wrote: On Fri, Jun 14, 2019 at 5:40 PM Tom Lane wrote: Heikki Linnakangas writes: In the patch, I documented that rd_amcache must be allocated in CacheMemoryContext, or in rd_indexcxt if it's an index. It works, but it's a bit weird. Given the way the pat

Re: Allow table AM's to cache stuff in relcache

2019-07-12 Thread Julien Rouhaud
On Fri, Jun 14, 2019 at 5:40 PM Tom Lane wrote: > > Heikki Linnakangas writes: > > Index AM's can cache stuff in RelationData->rd_amcache. In the zedstore > > table AM we've been hacking on, I'd like to also use rd_amcache to cache > > some information, but that's not currently possible, because

Re: Allow table AM's to cache stuff in relcache

2019-06-14 Thread Tom Lane
Heikki Linnakangas writes: > Index AM's can cache stuff in RelationData->rd_amcache. In the zedstore > table AM we've been hacking on, I'd like to also use rd_amcache to cache > some information, but that's not currently possible, because rd_amcache > can only be used by index AMs, not table AM

Allow table AM's to cache stuff in relcache

2019-06-14 Thread Heikki Linnakangas
Index AM's can cache stuff in RelationData->rd_amcache. In the zedstore table AM we've been hacking on, I'd like to also use rd_amcache to cache some information, but that's not currently possible, because rd_amcache can only be used by index AMs, not table AMs. Attached patch allows rd_amcach