Joe Conway <mail(at)joeconway(dot)com> writes:
> Attached adds:
> + TupleDesc queryDesc; /* descriptor for planned query */
> to ReturnSetInfo, and populates ReturnSetInfo for every function call to
> ExecMakeTableFunctionResult, not just when fn_retset.
I thought "expectedDesc" was a more sensible choice of name, so I made
it that. Otherwise, patch applied.
> I haven't done it yet, but I suppose this should be documented in
> xfunc.sgml.
Actually, most of what's in src/backend/utils/fmgr/README should be
transposed into xfunc.sgml someday.
regards, tom lane