Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d1032b0

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

File tree

1 file changed

+6
-0
lines changed
Filter options

1 file changed

+6
-0
lines changed

‎src/pl_range_funcs.c

Copy file name to clipboardExpand all lines: src/pl_range_funcs.c
+6Lines changed: 6 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.