@@ -1087,8 +1087,7 @@ DefineRelation(CreateStmt *stmt, char relkind, Oid ownerId,
10871087 }
10881088
10891089 attmap = convert_tuples_by_name_map(RelationGetDescr(rel),
1090- RelationGetDescr(parent),
1091- gettext_noop("could not convert row type"));
1090+ RelationGetDescr(parent));
10921091 idxstmt =
10931092 generateClonedIndexStmt(NULL, idxRel,
10941093 attmap, RelationGetDescr(rel)->natts,
@@ -8171,8 +8170,7 @@ addFkRecurseReferenced(List **wqueue, Constraint *fkconstraint, Relation rel,
81718170 * definition to match the partition's column layout.
81728171 */
81738172 map = convert_tuples_by_name_map_if_req(RelationGetDescr(partRel),
8174- RelationGetDescr(pkrel),
8175- gettext_noop("could not convert row type"));
8173+ RelationGetDescr(pkrel));
81768174 if (map)
81778175 {
81788176 mapped_pkattnum = palloc(sizeof(AttrNumber) * numfks);
@@ -8314,8 +8312,7 @@ addFkRecurseReferencing(List **wqueue, Constraint *fkconstraint, Relation rel,
83148312 CheckTableNotInUse(partition, "ALTER TABLE");
83158313
83168314 attmap = convert_tuples_by_name_map(RelationGetDescr(partition),
8317- RelationGetDescr(rel),
8318- gettext_noop("could not convert row type"));
8315+ RelationGetDescr(rel));
83198316 for (int j = 0; j < numfks; j++)
83208317 mapped_fkattnum[j] = attmap[fkattnum[j] - 1];
83218318
@@ -8505,8 +8502,7 @@ CloneFkReferenced(Relation parentRel, Relation partitionRel)
85058502 table_close(pg_constraint, RowShareLock);
85068503
85078504 attmap = convert_tuples_by_name_map(RelationGetDescr(partitionRel),
8508- RelationGetDescr(parentRel),
8509- gettext_noop("could not convert row type"));
8505+ RelationGetDescr(parentRel));
85108506 foreach(cell, clone)
85118507 {
85128508 Oid constrOid = lfirst_oid(cell);
@@ -8642,8 +8638,7 @@ CloneFkReferencing(List **wqueue, Relation parentRel, Relation partRel)
86428638 * different. This map is used to convert them.
86438639 */
86448640 attmap = convert_tuples_by_name_map(RelationGetDescr(partRel),
8645- RelationGetDescr(parentRel),
8646- gettext_noop("could not convert row type"));
8641+ RelationGetDescr(parentRel));
86478642
86488643 partFKs = copyObject(RelationGetFKeyList(partRel));
86498644
@@ -10473,8 +10468,7 @@ ATPrepAlterColumnType(List **wqueue,
1047310468 cmd = copyObject(cmd);
1047410469
1047510470 attmap = convert_tuples_by_name_map(RelationGetDescr(childrel),
10476- RelationGetDescr(rel),
10477- gettext_noop("could not convert row type"));
10471+ RelationGetDescr(rel));
1047810472 ((ColumnDef *) cmd->def)->cooked_default =
1047910473 map_variable_attnos(def->cooked_default,
1048010474 1, 0,
@@ -15845,8 +15839,7 @@ AttachPartitionEnsureIndexes(Relation rel, Relation attachrel)
1584515839 /* construct an indexinfo to compare existing indexes against */
1584615840 info = BuildIndexInfo(idxRel);
1584715841 attmap = convert_tuples_by_name_map(RelationGetDescr(attachrel),
15848- RelationGetDescr(rel),
15849- gettext_noop("could not convert row type"));
15842+ RelationGetDescr(rel));
1585015843 constraintOid = get_relation_idx_constraint_oid(RelationGetRelid(rel), idx);
1585115844
1585215845 /*
@@ -16422,8 +16415,7 @@ ATExecAttachPartitionIdx(List **wqueue, Relation parentIdx, RangeVar *name)
1642216415 childInfo = BuildIndexInfo(partIdx);
1642316416 parentInfo = BuildIndexInfo(parentIdx);
1642416417 attmap = convert_tuples_by_name_map(RelationGetDescr(partTbl),
16425- RelationGetDescr(parentTbl),
16426- gettext_noop("could not convert row type"));
16418+ RelationGetDescr(parentTbl));
1642716419 if (!CompareIndexInfo(childInfo, parentInfo,
1642816420 partIdx->rd_indcollation,
1642916421 parentIdx->rd_indcollation,
0 commit comments