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

Commit 3d8966a

Browse files
committed
store table row types for wholerow references in AppendRelInfo
1 parent 728c468 commit 3d8966a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pg_pathman.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,10 @@ append_child_relation(PlannerInfo *root, Relation parent_relation,
334334
appinfo->child_relid = childRTindex;
335335
appinfo->parent_reloid = parent_rte->relid;
336336

337+
/* Store table row types for wholerow references */
338+
appinfo->parent_reltype = RelationGetDescr(parent_relation)->tdtypeid;
339+
appinfo->child_reltype = RelationGetDescr(child_relation)->tdtypeid;
340+
337341
make_inh_translation_list(parent_relation, child_relation, childRTindex,
338342
&appinfo->translated_vars);
339343

0 commit comments

Comments
 (0)