Re: Seeking expected return type info for SPI function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jgd(at)well(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Seeking expected return type info for SPI function
Date: 2009-12-10 23:04:38
Message-ID: 28798.1260486278@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"J. Greg Davidson" <jgd(at)well(dot)com> writes:
> When PostgreSQL calls a C function I get all kinds of interesting
> information in the
> struct FunctionCallInfoData
> and
> struct FmgrInfo
> (details at bottom). I was hoping to get the oid of the expected
> return type somewhere, but I don't see it. Am I missing something?

get_fn_expr_rettype() can get that for you in most circumstances.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Ribe 2009-12-10 23:20:28 Re: Cheapest way to poll for notifications?
Previous Message Andy Colson 2009-12-10 22:52:21 apply text mask