Skip to content

Commit 477a0dd

Browse files
committed
Merge commit '135c8528bd155dfa66eeb52a674511c48122a35c' into PGPRO9_6_pathman
2 parents e2c409b + 135c852 commit 477a0dd

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

contrib/pg_pathman/src/init.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ extern PathmanInitState pg_pathman_init_state;
9797

9898
/* Lowest version of Pl/PgSQL frontend compatible with internals (0xAA_BB_CC) */
9999
#define LOWEST_COMPATIBLE_FRONT 0x010200
100-
#define CURRENT_LIB_VERSION 0x010200
100+
101+
/* Current version on native C library (0xAA_BB_CC) */
102+
#define CURRENT_LIB_VERSION 0x010201
101103

102104

103105
/*

contrib/pg_pathman/src/partition_creation.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*-------------------------------------------------------------------------
1+
/*-------------------------------------------------------------------------
22
*
33
* partition_creation.c
44
* Various functions for partition creation.
@@ -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+
(uint64) DatumGetInt64(part_num)); /* can't use UInt64 on 9.5 */
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