"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