Fix things so that you can still do "select foo()" where foo is a SQL

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

Commit: 0c19f05803523eda14d0b5bc78bf82893fb64167
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-06-11T17:25:39Z
Releases: 8.4.0
Fix things so that you can still do "select foo()" where foo is a SQL
function returning setof record.  This used to work, more or less
accidentally, but I had broken it while extending the code to allow
materialize-mode functions to be called in select lists.  Add a regression
test case so it doesn't get broken again.  Per gripe from Greg Davidson.

Files