Re: why declare arg as a array in FunctionCallInfoData structure

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: why declare arg as a array in FunctionCallInfoData structure
Дата
Msg-id 13296.1233588876@sss.pgh.pa.us
обсуждение исходный текст
Ответ на why declare arg as a array in FunctionCallInfoData structure  ("Tao Ma" <feng_eden@163.com>)
Список pgsql-hackers
"Tao Ma" <feng_eden@163.com> writes:
> When I read the postgresql codes, I noticed that the FunctionCallInfoData 
> structure(declared in the src/include/fmgr.h) contains two arrays 'arg' and 
> 'argnull'.
> Why don't you declare it as a pointer and allocate the memory from
> heap?

Speed.  We spend enough cycles in palloc already.
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: add_path optimization
Следующее
От: Tom Lane
Дата:
Сообщение: Re: parallel restore