SETOF anyelement - get_call_result_type

From: Courtin Olivier <olivier(dot)courtin(at)oslandia(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: SETOF anyelement - get_call_result_type
Date: 2011-08-22 22:36:25
Message-ID: 220F28FA-ED2A-40AD-9506-1220F3D4AB98@oslandia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,

I'm trying from a C function to return a SETOF anyelement,
but get_call_result_type(fcinfo, NULL, &tupdesc)
don't return TYPEFUNC_COMPOSITE as expected.

Something i've missed ?

(I know i can do it with a SETOF RECORD instead,
but it leads to explicitely define the output type of each column
and i want to avoid this, if possible.)

Thanks in advance,

--
Olivier

Browse pgsql-general by date

  From Date Subject
Next Message Bob Pawley 2011-08-23 01:49:48 Re: Updating Arrays
Previous Message Greg Smith 2011-08-22 21:39:54 Re: question regarding full_page_write