Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group