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

src/partition_creation.c

Lines changed: 3 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy