Re: [HACKERS] portals vs. memory contexts

Поиск
Список
Период
Сортировка
От Vadim Mikheev
Тема Re: [HACKERS] portals vs. memory contexts
Дата
Msg-id 36F70B98.C38E9274@krs.ru
обсуждение исходный текст
Ответ на Re: [HACKERS] portals vs. memory contexts  (Bruce Momjian <maillist@candle.pha.pa.us>)
Ответы Re: [HACKERS] portals vs. memory contexts  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] portals vs. memory contexts
Следующее
От: Erik Riedel
Дата:
Сообщение: Re: [HACKERS] optimizer and type question