Re: Tuplestore should remember the memory context it's created in
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Tuplestore should remember the memory context it's created in |
| Дата | |
| Msg-id | 8566.1261494104@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Tuplestore should remember the memory context it's created in (Greg Stark <gsstark@mit.edu>) |
| Ответы |
Re: Tuplestore should remember the memory context it's
created in
|
| Список | pgsql-hackers |
Greg Stark <gsstark@mit.edu> writes:
> On Tue, Dec 22, 2009 at 11:45 AM, Heikki Linnakangas
> <heikki.linnakangas@enterprisedb.com> wrote:
>> AFAICS it is always a bug to be in a different memory context
>> in tuplestore_put* than in tuplestore_begin_heap(), so it would be more
>> robust to not put the burden on the callers.
> I thought there were comments specifically explaining why it was done
> that way but I don't recall what they said.
I think it was just a performance optimization. It's probably not
measurable though; even in the in-memory case there's at least a palloc
inside the put() function, no?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера