Avoid needless copy in nodeMaterial

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Avoid needless copy in nodeMaterial
Дата
Msg-id 1192507523.6133.21.camel@goldbach
обсуждение исходный текст
Ответы Re: Avoid needless copy in nodeMaterial  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Avoid needless copy in nodeMaterial  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-patches
Attached is a patch that avoids a needless copy of the result tuple in
nodeMaterial, in the case that we don't have a previously-materialized
tuple to return. We can just return the TTS produced by executing our
child node, rather than returning a copy of it.

I didn't bother pulling the MinimalTuple out of "outerslot" and stuffing
it back into the nodeMaterial's result slot, as AFAICS that is not
necessary. Although I suppose you could make a cleanliness argument that
that would be worth doing instead.

(This is 8.4 material...)

-Neil


Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Assertion failure with small block sizes
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Avoid needless copy in nodeMaterial