Extend ExecMakeFunctionResult() to support set-returning functions that return
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 28 Oct 2008 22:02:06 +0000 (22:02 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 28 Oct 2008 22:02:06 +0000 (22:02 +0000)
commit6d5301be5ece6394433d73288e0fafaed6326485
tree97185a589df41d03b88ee8514188074e6ffeb77c
parentad3ce0efddb96857bf3d76acb496a1df260c2de9
Extend ExecMakeFunctionResult() to support set-returning functions that return
via a tuplestore instead of value-per-call.  Refactor a few things to reduce
ensuing code duplication with nodeFunctionscan.c.  This represents the
reasonably noncontroversial part of my proposed patch to switch SQL functions
over to returning tuplestores.  For the moment, SQL functions still do things
the old way.  However, this change enables PL SRFs to be called in targetlists
(observe changes in plperl regression results).
contrib/tablefunc/tablefunc.c
doc/src/sgml/plpgsql.sgml
src/backend/executor/execQual.c
src/backend/executor/execTuples.c
src/backend/executor/nodeFunctionscan.c
src/backend/utils/fmgr/README
src/include/executor/executor.h
src/include/executor/tuptable.h
src/include/nodes/execnodes.h
src/pl/plperl/expected/plperl.out