Re: Cstring vs. Datum values ( BuildTupleFromCStrings vs. BlessTupleDesc) - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Cstring vs. Datum values ( BuildTupleFromCStrings vs. BlessTupleDesc)
Date
Msg-id 407d949e1001231008vcfcdc1dld2db41600d36de80@mail.gmail.com
Whole thread Raw
In response to Re: Re: Cstring vs. Datum values ( BuildTupleFromCStrings vs. BlessTupleDesc)  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
List pgsql-hackers
On Sat, Jan 23, 2010 at 5:53 PM, Ivan Sergio Borgonovo
<mail@webthatworks.it> wrote:
> That confused me further since it seems a 3rd technique to return
> set of records.
>

The heapfuncs.c example uses get_call_result_type() to get the
tupledesc and calls heap_form_tuple() to construct the return value,
just like the docs describe. The extra code is because it's a
set-returning-function which has its own set of tricky things to do.


-- 
greg


pgsql-hackers by date:

Previous
From: Ivan Sergio Borgonovo
Date:
Subject: Re: Re: Cstring vs. Datum values ( BuildTupleFromCStrings vs. BlessTupleDesc)
Next
From: Peter Eisentraut
Date:
Subject: Re: tab completion for prepared transactions?