Questions about the internal of fastpath function call - Mailing list pgsql-hackers

From lee Richard
Subject Questions about the internal of fastpath function call
Date
Msg-id BANLkTikhFxQ-_U6prRR7ahte-Pv4Lve_nA@mail.gmail.com
Whole thread Raw
Responses Re: Questions about the internal of fastpath function call  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-hackers
Hi,<br /><br />I am reading the source code of fastpath to understand the internal of fastpath. I can not understand
howdoes it send result to the client, I hope somebody can help me on this.<br /><br />I see it call it invoke the
functionin <br /><br />HandleFunctionRequest()<br />  -> retval = FunctionCallInvoke(&fcinfo);<br />  ->
SendFunctionResult(retval,fcinfo.isnull, fip->rettype, rformat);<br />              ->OidOutputFunctionCall()  
<br/>                      -> OutputFunctionCall()<br />                                ->  result =
DatumGetCString(FunctionCall1(flinfo,val));<br />                                       -> result =
FunctionCallInvoke(&fcinfo);<br/><br />but I can not see in where it send the tuples to the client, instead it 
invokeFunctionCallInvoke again. Can anyone tell me how it copy the tuples and send it to the client.<br /><br />Thanks
alot.<br /><br />Clipper <br /> <br />  <br /> 

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Why not install pgstattuple by default?
Next
From: Merlin Moncure
Date:
Subject: Re: Questions about the internal of fastpath function call