Re: Seeking expected return type info for SPI function - Mailing list pgsql-general

From Tom Lane
Subject Re: Seeking expected return type info for SPI function
Date
Msg-id 28798.1260486278@sss.pgh.pa.us
Whole thread Raw
In response to Seeking expected return type info for SPI function  ("J. Greg Davidson" <jgd@well.com>)
List pgsql-general
"J. Greg Davidson" <jgd@well.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

pgsql-general by date:

Previous
From: "J. Greg Davidson"
Date:
Subject: Seeking expected return type info for SPI function
Next
From: Scott Ribe
Date:
Subject: Re: Cheapest way to poll for notifications?