]> granicus.if.org Git - postgresql/commit
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)
commite3e3d2a789e34ff6572bdf693beb1516a228c5ff
treec5c95ccfe1f4cc79e49c572b13681f628a212fe9
parenta80a12247a99f0bccf47bed5786f28a35fc80845
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