why declare arg as a array in FunctionCallInfoData structure

Поиск
Список
Период
Сортировка
От Tao Ma
Тема why declare arg as a array in FunctionCallInfoData structure
Дата
Msg-id gm66jg$2jf4$1@news.hub.org
обсуждение исходный текст
Ответы Re: why declare arg as a array in FunctionCallInfoData structure  (Martijn van Oosterhout <kleptog@svana.org>)
Re: why declare arg as a array in FunctionCallInfoData structure  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: why declare arg as a array in FunctionCallInfoData structure  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
hi,

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? It 
saves more momery if 'arg' and 'argnull' declares as pointer type.

Can anyone explain it to me?

Thanks in advance. 




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

Предыдущее
От: Zdenek Kotala
Дата:
Сообщение: Re: foreign_data test fails with non-C locale
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: why declare arg as a array in FunctionCallInfoData structure