Re: C Function returning a tuple with a float4 array as column

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tim <tim(dot)child(at)comcast(dot)net>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: C Function returning a tuple with a float4 array as column
Date: 2010-12-06 15:33:36
Message-ID: 26366.1291649616@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox
Thread:
Lists: pgsql-novice

Tim <tim(dot)child(at)comcast(dot)net> writes:
> So re-phrasing my question what would the code sequence look like
> to return a single composite type, that contained 1 or more arrays?

If that's where you want to go, then just go there. The
single-column-result case is different from the multi-column-result
case, and I think your code is already correct for the latter (barring
the PointerGetDatum issue).

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tim 2010-12-06 16:50:04 Re: C Function returning a tuple with a float4 array as column
Previous Message mike 2010-12-06 14:43:06 Re: Duplicate data within tables