[HACKERS] Re: Cstring vs. Datum values ( BuildTupleFromCStrings vs. BlessTupleDesc)

2010-01-23 Thread Greg Stark
On Sat, Jan 23, 2010 at 12:56 PM, Ivan Sergio Borgonovo m...@webthatworks.it wrote: And if I can... how, why and when... because I didn't find any clear example in the source tree that gives me a clue about when I'd use one form or the other. There are a few contrib modules which make good

Re: [HACKERS] Re: Cstring vs. Datum values ( BuildTupleFromCStrings vs. BlessTupleDesc)

2010-01-23 Thread Ivan Sergio Borgonovo
On Sat, 23 Jan 2010 15:54:04 + Greg Stark gsst...@mit.edu wrote: On Sat, Jan 23, 2010 at 12:56 PM, Ivan Sergio Borgonovo m...@webthatworks.it wrote: And if I can... how, why and when... because I didn't find any clear example in the source tree that gives me a clue about when I'd use

[HACKERS] Re: Cstring vs. Datum values ( BuildTupleFromCStrings vs. BlessTupleDesc)

2010-01-23 Thread Greg Stark
On Sat, Jan 23, 2010 at 5:53 PM, Ivan Sergio Borgonovo m...@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