Re: Cstring vs. Datum values ( BuildTupleFromCStrings vs. BlessTupleDesc)

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Cstring vs. Datum values ( BuildTupleFromCStrings vs. BlessTupleDesc)
Date: 2010-01-23 18:08:42
Message-ID: 407d949e1001231008vcfcdc1dld2db41600d36de80@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Jan 23, 2010 at 5:53 PM, Ivan Sergio Borgonovo
<mail(at)webthatworks(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2010-01-23 18:22:49 Re: tab completion for prepared transactions?
Previous Message Ivan Sergio Borgonovo 2010-01-23 17:53:30 Re: Re: Cstring vs. Datum values ( BuildTupleFromCStrings vs. BlessTupleDesc)