Fix some (more) problems with subselects in rules. Rewriter failed to
Tom Lane <tgl@sss.pgh.pa.us>
Fix some (more) problems with subselects in rules. Rewriter failed to mark query as having subselects if a subselect was added from a rule WHERE condition (as opposed to a rule action). Also, fix adjustment of varlevelsup so that it actually has some prospect of working when inserting an expression containing a subselect into a subquery.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/rewrite/rewriteHandler.c | modified | +22 −146 |
| src/backend/rewrite/rewriteManip.c | modified | +160 −19 |
| src/include/rewrite/rewriteManip.h | modified | +6 −1 |