Quick hack to allow the outer query's tuple_fraction to be passed down

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

Commit: a87ee007edfa3d71e31cea4adad396888adbcd5a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-06-10T03:32:25Z
Releases: 8.1.0
Quick hack to allow the outer query's tuple_fraction to be passed down
to a subquery if the outer query is simple enough that the LIMIT can
be reflected directly to the subquery.  This didn't use to be very
interesting, because a subquery that couldn't have been flattened into
the upper query was usually not going to be very responsive to
tuple_fraction anyway.  But with new code that allows UNION ALL subqueries
to pay attention to tuple_fraction, this is useful to do.  In particular
this lets the optimization occur when the UNION ALL is directly inside
a view.

Files