Re: AllocSetReset improvement

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: AllocSetReset improvement
Дата
Msg-id 3928.1116085387@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: AllocSetReset improvement  (a_ogawa <a_ogawa@hi-ho.ne.jp>)
Ответы Re: AllocSetReset improvement
Список pgsql-patches
a_ogawa <a_ogawa@hi-ho.ne.jp> writes:
> It is a reasonable idea. However, the majority part of MemSet was not
> able to be avoided by this idea. Because the per-tuple contexts are used
> at the early stage of executor.

Drat.  Well, what about changing that?  We could introduce additional
contexts or change the startup behavior so that the ones that are
frequently reset don't have any data in them unless you are working
with pass-by-ref values inside the inner loop.

> I am considering another idea: I think that we can change behavior of the
> context by switching the method table of context.

That's a possible solution but it feels a bit klugy somehow.  I can't
quite articulate what is bothering me ... will think more.

            regards, tom lane

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

Предыдущее
От: a_ogawa
Дата:
Сообщение: Re: AllocSetReset improvement
Следующее
От: Andrew Dunstan
Дата:
Сообщение: [Fwd: Re: [HACKERS] plperl and pltcl installcheck targets]