Extend ExecMakeFunctionResult() to support set-returning functions that return

Tom Lane <tgl@sss.pgh.pa.us>

Commit: e3e3d2a789e34ff6572bdf693beb1516a228c5ff
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-10-28T22:02:06Z
Releases: 8.4.0
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).

Files