Re: Questions about the internal of fastpath function call

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: lee Richard <clipper(dot)kenyon(at)gmail(dot)com>
Cc: Merlin Moncure <mmoncure(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Questions about the internal of fastpath function call
Date: 2011-05-08 16:51:15
Message-ID: 21270.1304873475@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

lee Richard <clipper(dot)kenyon(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2011-05-08 22:11:24 Re: patch for new feature: Buffer Cache Hibernation
Previous Message Greg Smith 2011-05-08 16:49:39 Re: improvements to pgtune