that we're considering pulling up. I hadn't wanted to think through whether
that could work during the first pass at this stuff. However, on closer
inspection it seems to be safe enough.
if (contain_volatile_functions(whereClause))
return false;
- /*
- * Also disallow SubLinks within the WHERE clause. (XXX this could
- * probably be supported, but it would complicate the transformation
- * below, and it doesn't seem worth worrying about in a first pass.)
- */
- if (contain_subplans(whereClause))
- return false;
-
/*
* Prepare to pull up the sub-select into top range table.
*