Allow SQL-language functions to return the output of an INSERT/UPDATE/DELETE

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

Commit: 9b46abb7c47de8aa408a8c83666fd67c5447eb85
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-10-31T19:37:56Z
Releases: 8.4.0
Allow SQL-language functions to return the output of an INSERT/UPDATE/DELETE
RETURNING clause, not just a SELECT as formerly.

A side effect of this patch is that when a set-returning SQL function is used
in a FROM clause, performance is improved because the output is collected into
a tuplestore within the function, rather than using the less efficient
value-per-call mechanism.

Files