Re: Progress report: intraquery memory recovery in executor

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Progress report: intraquery memory recovery in executor
Дата
Msg-id 29989.963238138@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Progress report: intraquery memory recovery in executor  (Philip Warner <pjw@rhyme.com.au>)
Ответы Re: Progress report: intraquery memory recovery in executor  (Philip Warner <pjw@rhyme.com.au>)
Список pgsql-hackers
Philip Warner <pjw@rhyme.com.au> writes:
> Is it simple for the person writing the low level routines to choose
> (easily) to allocate 'temporary' memory vs. 'permanent' memory?

One of the main problems is that a low-level routine doesn't necessarily
know which is appropriate --- the answer may vary depending on where it
was called from.  To do it that way, I think we'd end up decorating a
large number of internal APIs with extra MemoryContext arguments.
(This is exactly why we have a global CurrentMemoryContext in the first
place...)

That's why I wanted to do the management at the level of the Plan node
executor routines, which are high-level enough that they have some clue
what's going on.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Zeugswetter Andreas SB
Дата:
Сообщение: AW: Re: postgres TODO
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: [BUGS] Unnexpected results using to_number()