@@ -1087,8 +1087,7 @@ DefineRelation(CreateStmt *stmt, char relkind, Oid ownerId,
1087
1087
}
1088
1088
1089
1089
attmap = convert_tuples_by_name_map(RelationGetDescr(rel),
1090
- RelationGetDescr(parent),
1091
- gettext_noop("could not convert row type"));
1090
+ RelationGetDescr(parent));
1092
1091
idxstmt =
1093
1092
generateClonedIndexStmt(NULL, idxRel,
1094
1093
attmap, RelationGetDescr(rel)->natts,
@@ -8171,8 +8170,7 @@ addFkRecurseReferenced(List **wqueue, Constraint *fkconstraint, Relation rel,
8171
8170
* definition to match the partition's column layout.
8172
8171
*/
8173
8172
map = convert_tuples_by_name_map_if_req(RelationGetDescr(partRel),
8174
- RelationGetDescr(pkrel),
8175
- gettext_noop("could not convert row type"));
8173
+ RelationGetDescr(pkrel));
8176
8174
if (map)
8177
8175
{
8178
8176
mapped_pkattnum = palloc(sizeof(AttrNumber) * numfks);
@@ -8314,8 +8312,7 @@ addFkRecurseReferencing(List **wqueue, Constraint *fkconstraint, Relation rel,
8314
8312
CheckTableNotInUse(partition, "ALTER TABLE");
8315
8313
8316
8314
attmap = convert_tuples_by_name_map(RelationGetDescr(partition),
8317
- RelationGetDescr(rel),
8318
- gettext_noop("could not convert row type"));
8315
+ RelationGetDescr(rel));
8319
8316
for (int j = 0; j < numfks; j++)
8320
8317
mapped_fkattnum[j] = attmap[fkattnum[j] - 1];
8321
8318
@@ -8505,8 +8502,7 @@ CloneFkReferenced(Relation parentRel, Relation partitionRel)
8505
8502
table_close(pg_constraint, RowShareLock);
8506
8503
8507
8504
attmap = convert_tuples_by_name_map(RelationGetDescr(partitionRel),
8508
- RelationGetDescr(parentRel),
8509
- gettext_noop("could not convert row type"));
8505
+ RelationGetDescr(parentRel));
8510
8506
foreach(cell, clone)
8511
8507
{
8512
8508
Oid constrOid = lfirst_oid(cell);
@@ -8642,8 +8638,7 @@ CloneFkReferencing(List **wqueue, Relation parentRel, Relation partRel)
8642
8638
* different. This map is used to convert them.
8643
8639
*/
8644
8640
attmap = convert_tuples_by_name_map(RelationGetDescr(partRel),
8645
- RelationGetDescr(parentRel),
8646
- gettext_noop("could not convert row type"));
8641
+ RelationGetDescr(parentRel));
8647
8642
8648
8643
partFKs = copyObject(RelationGetFKeyList(partRel));
8649
8644
@@ -10473,8 +10468,7 @@ ATPrepAlterColumnType(List **wqueue,
10473
10468
cmd = copyObject(cmd);
10474
10469
10475
10470
attmap = convert_tuples_by_name_map(RelationGetDescr(childrel),
10476
- RelationGetDescr(rel),
10477
- gettext_noop("could not convert row type"));
10471
+ RelationGetDescr(rel));
10478
10472
((ColumnDef *) cmd->def)->cooked_default =
10479
10473
map_variable_attnos(def->cooked_default,
10480
10474
1, 0,
@@ -15845,8 +15839,7 @@ AttachPartitionEnsureIndexes(Relation rel, Relation attachrel)
15845
15839
/* construct an indexinfo to compare existing indexes against */
15846
15840
info = BuildIndexInfo(idxRel);
15847
15841
attmap = convert_tuples_by_name_map(RelationGetDescr(attachrel),
15848
- RelationGetDescr(rel),
15849
- gettext_noop("could not convert row type"));
15842
+ RelationGetDescr(rel));
15850
15843
constraintOid = get_relation_idx_constraint_oid(RelationGetRelid(rel), idx);
15851
15844
15852
15845
/*
@@ -16422,8 +16415,7 @@ ATExecAttachPartitionIdx(List **wqueue, Relation parentIdx, RangeVar *name)
16422
16415
childInfo = BuildIndexInfo(partIdx);
16423
16416
parentInfo = BuildIndexInfo(parentIdx);
16424
16417
attmap = convert_tuples_by_name_map(RelationGetDescr(partTbl),
16425
- RelationGetDescr(parentTbl),
16426
- gettext_noop("could not convert row type"));
16418
+ RelationGetDescr(parentTbl));
16427
16419
if (!CompareIndexInfo(childInfo, parentInfo,
16428
16420
partIdx->rd_indcollation,
16429
16421
parentIdx->rd_indcollation,
0 commit comments