Re: index access method documentation light on details on ii_AmCache

2023-09-15 Thread Seebs
On Thu, 14 Sep 2023 10:06:03 -0300 "Euler Taveira" wrote: > AFAICS there isn't a chapter dedicated to memory contexts in the > documentation. Did you check the README that I pointed out in the > previous email? Most of the developer information is available in > README files in the source code. S

Re: index access method documentation light on details on ii_AmCache

2023-09-14 Thread Euler Taveira
On Wed, Sep 13, 2023, at 6:48 PM, Seebs wrote: > On Wed, 13 Sep 2023 15:48:41 -0300 > "Euler Taveira" wrote: > > > Unless you change it, ii_Context is CurrentMemoryContext (see > > makeIndexInfo). Hence, your AM state information is freed when the > > current memory context is freed. > > A thing

Re: index access method documentation light on details on ii_AmCache

2023-09-14 Thread Seebs
On Wed, 13 Sep 2023 15:48:41 -0300 "Euler Taveira" wrote: > Unless you change it, ii_Context is CurrentMemoryContext (see > makeIndexInfo). Hence, your AM state information is freed when the > current memory context is freed. A thing I am now wondering: Is there anything in the postgresql docum

Re: index access method documentation light on details on ii_AmCache

2023-09-13 Thread Euler Taveira
On Tue, Sep 12, 2023, at 2:36 PM, PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/15/index-functions.html > Description: > > So, if I cache something in ii_AmCache during a call to my aminsert > callback..

index access method documentation light on details on ii_AmCache

2023-09-13 Thread PG Doc comments form
The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/15/index-functions.html Description: So, if I cache something in ii_AmCache during a call to my aminsert callback... When, if ever, does it get freed? Having looked at example code, I don't