Bruce Momjian wrote:
>
> >
> > I notice you used portals for vacuum, rather than a separate memory
> > context. Can I ask why?
> >
> > I am considering creating an expression portal or memory context to
> > prevent the memory leaks from the utils/adt functions.
> >
>
> I am also confused about varaible portal memory vs heap portal memory.
portalmem.c:
* Node* |* MemoryContext___* / \*
GlobalMemory PortalMemoryContext* / \* PortalVariableMemory
PortalHeapMemory** Flushed at Flushed at Checkpoints* Transaction
Portal* Commit Close** GlobalMemory n n n*
PortalVariableMemory n y n* PortalHeapMemory y y
y *
Vadim