Skip to content

Commit d1032b0

Browse files
committed
[PGPRO-2355] Check pathman readiness in split and merge range parts.
1 parent 6c9d435 commit d1032b0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pl_range_funcs.c

+6
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,9 @@ split_range_partition(PG_FUNCTION_ARGS)
489489
char *query;
490490
int i;
491491

492+
if (!IsPathmanReady())
493+
elog(ERROR, "pg_pathman is disabled");
494+
492495
if (!PG_ARGISNULL(0))
493496
{
494497
partition1 = PG_GETARG_OID(0);
@@ -652,6 +655,9 @@ merge_range_partitions(PG_FUNCTION_ARGS)
652655
FmgrInfo finfo;
653656
int i;
654657

658+
if (!IsPathmanReady())
659+
elog(ERROR, "pg_pathman is disabled");
660+
655661
/* Validate array type */
656662
Assert(ARR_ELEMTYPE(arr) == REGCLASSOID);
657663

0 commit comments

Comments
 (0)