diff options
Diffstat (limited to 'src/backend/optimizer/prep/prepjointree.c')
-rw-r--r-- | src/backend/optimizer/prep/prepjointree.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/backend/optimizer/prep/prepjointree.c b/src/backend/optimizer/prep/prepjointree.c index c742cc9542b..485ac31bd37 100644 --- a/src/backend/optimizer/prep/prepjointree.c +++ b/src/backend/optimizer/prep/prepjointree.c @@ -580,10 +580,7 @@ inline_set_returning_functions(PlannerInfo *root) /* Successful expansion, replace the rtable entry */ rte->rtekind = RTE_SUBQUERY; rte->subquery = funcquery; - rte->funcexpr = NULL; - rte->funccoltypes = NIL; - rte->funccoltypmods = NIL; - rte->funccolcollations = NIL; + rte->functions = NIL; } } } @@ -1623,8 +1620,8 @@ replace_vars_in_jointree(Node *jtnode, context); break; case RTE_FUNCTION: - rte->funcexpr = - pullup_replace_vars(rte->funcexpr, + rte->functions = (List *) + pullup_replace_vars((Node *) rte->functions, context); break; case RTE_VALUES: |