diff options
Diffstat (limited to 'src/backend/executor/execMain.c')
-rw-r--r-- | src/backend/executor/execMain.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c index c46eb8d6468..d60ea9c5afc 100644 --- a/src/backend/executor/execMain.c +++ b/src/backend/executor/execMain.c @@ -1843,14 +1843,14 @@ ExecPartitionCheckEmitError(ResultRelInfo *resultRelInfo, if (resultRelInfo->ri_PartitionRoot) { TupleDesc old_tupdesc; - AttrNumber *map; + AttrMap *map; root_relid = RelationGetRelid(resultRelInfo->ri_PartitionRoot); tupdesc = RelationGetDescr(resultRelInfo->ri_PartitionRoot); old_tupdesc = RelationGetDescr(resultRelInfo->ri_RelationDesc); /* a reverse map */ - map = convert_tuples_by_name_map_if_req(old_tupdesc, tupdesc); + map = build_attrmap_by_name_if_req(old_tupdesc, tupdesc); /* * Partition-specific slot's tupdesc can't be changed, so allocate a @@ -1929,13 +1929,13 @@ ExecConstraints(ResultRelInfo *resultRelInfo, */ if (resultRelInfo->ri_PartitionRoot) { - AttrNumber *map; + AttrMap *map; rel = resultRelInfo->ri_PartitionRoot; tupdesc = RelationGetDescr(rel); /* a reverse map */ - map = convert_tuples_by_name_map_if_req(orig_tupdesc, - tupdesc); + map = build_attrmap_by_name_if_req(orig_tupdesc, + tupdesc); /* * Partition-specific slot's tupdesc can't be changed, so @@ -1978,13 +1978,13 @@ ExecConstraints(ResultRelInfo *resultRelInfo, if (resultRelInfo->ri_PartitionRoot) { TupleDesc old_tupdesc = RelationGetDescr(rel); - AttrNumber *map; + AttrMap *map; rel = resultRelInfo->ri_PartitionRoot; tupdesc = RelationGetDescr(rel); /* a reverse map */ - map = convert_tuples_by_name_map_if_req(old_tupdesc, - tupdesc); + map = build_attrmap_by_name_if_req(old_tupdesc, + tupdesc); /* * Partition-specific slot's tupdesc can't be changed, so @@ -2085,13 +2085,13 @@ ExecWithCheckOptions(WCOKind kind, ResultRelInfo *resultRelInfo, if (resultRelInfo->ri_PartitionRoot) { TupleDesc old_tupdesc = RelationGetDescr(rel); - AttrNumber *map; + AttrMap *map; rel = resultRelInfo->ri_PartitionRoot; tupdesc = RelationGetDescr(rel); /* a reverse map */ - map = convert_tuples_by_name_map_if_req(old_tupdesc, - tupdesc); + map = build_attrmap_by_name_if_req(old_tupdesc, + tupdesc); /* * Partition-specific slot's tupdesc can't be changed, |