Skip to content

Commit 2991144

Browse files
committed
fix function choose_range_partition_name()
1 parent 97d54fc commit 2991144

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/partition_creation.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,9 @@ choose_range_partition_name(Oid parent_relid, Oid parent_nsp)
657657
if (need_priv_escalation)
658658
SetUserIdAndSecContext(save_userid, save_sec_context);
659659

660-
return psprintf("%s_%u", get_rel_name(parent_relid), DatumGetInt32(part_num));
660+
return psprintf("%s_" UINT64_FORMAT,
661+
get_rel_name(parent_relid),
662+
DatumGetUInt64(part_num));
661663
}
662664

663665
/* Choose a good name for a HASH partition */

0 commit comments

Comments
 (0)