Arrange to "inline" SQL functions that appear in a query's FROM clause,

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

Commit: 0d49838df6f54c5b49d40a8cf396ea799bd3c4d9
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-03-18T22:04:14Z
Releases: 8.4.0
Arrange to "inline" SQL functions that appear in a query's FROM clause,
are declared to return set, and consist of just a single SELECT.  We
can replace the FROM-item with a sub-SELECT and then optimize much as
if we were dealing with a view.  Patch from Richard Rowell, cleaned up
by me.

Files