Re: why declare arg as a array in FunctionCallInfoData structure - Mailing list pgsql-hackers

From Tom Lane
Subject Re: why declare arg as a array in FunctionCallInfoData structure
Date
Msg-id 13296.1233588876@sss.pgh.pa.us
Whole thread Raw
In response to why declare arg as a array in FunctionCallInfoData structure  ("Tao Ma" <feng_eden@163.com>)
List 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 by date:

Previous
From: Robert Haas
Date:
Subject: Re: add_path optimization
Next
From: Tom Lane
Date:
Subject: Re: parallel restore