Re: [HACKERS] portals vs. memory contexts - Mailing list pgsql-hackers

From Vadim Mikheev
Subject Re: [HACKERS] portals vs. memory contexts
Date
Msg-id 36F70B98.C38E9274@krs.ru
Whole thread Raw
In response to Re: [HACKERS] portals vs. memory contexts  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [HACKERS] portals vs. memory contexts
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] portals vs. memory contexts
Next
From: Erik Riedel
Date:
Subject: Re: [HACKERS] optimizer and type question