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

From Tom Lane
Subject Re: Questions about the internal of fastpath function call
Date
Msg-id 21270.1304873475@sss.pgh.pa.us
Whole thread Raw
In response to Re: Questions about the internal of fastpath function call  (lee Richard <clipper.kenyon@gmail.com>)
Responses Re: Questions about the internal of fastpath function call  (lee Richard <clipper.kenyon@gmail.com>)
List pgsql-hackers
lee Richard <clipper.kenyon@gmail.com> writes:
> I still can not see how it return a single return value to the client, and
> why it call FunctionCall1() again when it want to send the result.

pq_endmessage is where the bytes actually get pushed out to the client,
if that's what you're looking for.  The rest of the activity in
SendFunctionResult is just concerned with constructing the message to be
sent within "buf".
        regards, tom lane


pgsql-hackers by date:

Previous
From: Greg Smith
Date:
Subject: Re: improvements to pgtune
Next
From: Heikki Linnakangas
Date:
Subject: Re: patch for new feature: Buffer Cache Hibernation