Fix inline_set_returning_function() to allow multiple OUT parameters.

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

Commit: 515e813543dad5464c1a226fd068fd4daf26a7f9
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-11-03T21:54:11Z
Releases: 9.2.0
Fix inline_set_returning_function() to allow multiple OUT parameters.

inline_set_returning_function failed to distinguish functions returning
generic RECORD (which require a column list in the RTE, as well as run-time
type checking) from those with multiple OUT parameters (which do not).
This prevented inlining from happening.  Per complaint from Jay Levitt.
Back-patch to 8.4 where this capability was introduced.

Files

PathChange+/−
src/backend/optimizer/util/clauses.c modified +5 −1