diff options
| author | Amit Khandekar | 2011-11-22 05:32:53 +0000 |
|---|---|---|
| committer | Amit Khandekar | 2011-11-22 05:32:53 +0000 |
| commit | abbeba0d09702fb8f257070475ca0a1346407d5f (patch) | |
| tree | 17d2a595260532bd5c214cb161c5177e6d20a335 | |
| parent | 18ff87e0823c960517cdc5e31d7bc7b1ee25f1c4 (diff) | |
Fix for bug 3440635: expressions containing correlated subqueries error out
We were deparsing SubPlan clause as "Subplan <subplan name>", which leads
to syntax errors in the pushed query.
It's not trivial to push a SubPlan, and typically it has dependencies with outer
query. So treat SubPlan clause as not-pushable. We anyways don't deparse a SubPlan.
| -rw-r--r-- | src/backend/pgxc/pool/postgresql_fdw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/pgxc/pool/postgresql_fdw.c b/src/backend/pgxc/pool/postgresql_fdw.c index 46da16046b..0a42426ab0 100644 --- a/src/backend/pgxc/pool/postgresql_fdw.c +++ b/src/backend/pgxc/pool/postgresql_fdw.c @@ -197,6 +197,7 @@ foreign_qual_walker(Node *node, foreign_qual_context *context) case T_PlaceHolderVar: case T_AppendRelInfo: case T_PlaceHolderInfo: + case T_SubPlan: /* TODO: research whether those complex nodes are evaluatable. */ return true; default: |
