Skip to content

Commit 15aa7bb

Browse files
author
Antonin Houska
committed
Pass the correct relations to convert_tuples_by_name_ext() for partition.
Broken by previous commit.
1 parent b700d44 commit 15aa7bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pg_rewrite.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@ get_partitions(Relation rel_src, Relation rel_dst, int *nparts,
14011401
entry->slot_ind = table_slot_create(partition, NULL);
14021402
entry->slot = MakeSingleTupleTableSlot(RelationGetDescr(rel_dst),
14031403
&TTSOpsHeapTuple);
1404-
entry->conv_map = convert_tuples_by_name_ext(rel_src, rel_dst);
1404+
entry->conv_map = convert_tuples_by_name_ext(rel_dst, partition);
14051405
/* Expect many insertions. */
14061406
entry->bistate = GetBulkInsertState();
14071407

0 commit comments

Comments
 (0)