Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 80f0e3b

Browse files
ashutosh-bapatCommitfest Bot
authored and
Commitfest Bot
committed
Handle child relation's ConvertRowtypeExpr in find_computable_ec_member()
1 parent fa400cc commit 80f0e3b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/backend/optimizer/path/equivclass.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,8 @@ find_computable_ec_member(PlannerInfo *root,
852852
exprvars = pull_var_clause((Node *) exprs,
853853
PVC_INCLUDE_AGGREGATES |
854854
PVC_INCLUDE_WINDOWFUNCS |
855-
PVC_INCLUDE_PLACEHOLDERS);
855+
PVC_INCLUDE_PLACEHOLDERS |
856+
PVC_INCLUDE_CONVERTROWTYPES);
856857

857858
foreach(lc, ec->ec_members)
858859
{
@@ -880,7 +881,8 @@ find_computable_ec_member(PlannerInfo *root,
880881
emvars = pull_var_clause((Node *) em->em_expr,
881882
PVC_INCLUDE_AGGREGATES |
882883
PVC_INCLUDE_WINDOWFUNCS |
883-
PVC_INCLUDE_PLACEHOLDERS);
884+
PVC_INCLUDE_PLACEHOLDERS|
885+
PVC_INCLUDE_CONVERTROWTYPES);
884886
foreach(lc2, emvars)
885887
{
886888
if (!list_member(exprvars, lfirst(lc2)))

0 commit comments

Comments
 (0)