Skip to content

Commit d71fbcd

Browse files
committed
use DatumGetInt64 instead of DatumGetUInt64 (9.5 compatibility)
1 parent 2991144 commit d71fbcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/partition_creation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ choose_range_partition_name(Oid parent_relid, Oid parent_nsp)
659659

660660
return psprintf("%s_" UINT64_FORMAT,
661661
get_rel_name(parent_relid),
662-
DatumGetUInt64(part_num));
662+
(uint64) DatumGetInt64(part_num)); /* can't use UInt64 on 9.5 */
663663
}
664664

665665
/* 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