Re: [HACKERS] get_fn_expr_argtype() vs. internal calls

2012-01-27 Thread Robert Haas
On Thu, Dec 29, 2011 at 4:17 PM, Noah Misch n...@leadboat.com wrote: We document that a polymorphic C-language function may identify the concrete data type of each argument using calls to get_fn_expr_argtype().  That relies on FmgrInfo.fn_expr, which only the executor sets.  Calls of internal

[HACKERS] get_fn_expr_argtype() vs. internal calls

2011-12-29 Thread Noah Misch
We document that a polymorphic C-language function may identify the concrete data type of each argument using calls to get_fn_expr_argtype(). That relies on FmgrInfo.fn_expr, which only the executor sets. Calls of internal origin, by way of {Direct,,Oid}FunctionCall*(), don't cons up an fn_expr,