Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitd1032b0

Browse files
committed
[PGPRO-2355] Check pathman readiness in split and merge range parts.
1 parent6c9d435 commitd1032b0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎src/pl_range_funcs.c

Lines 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
inti;
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
FmgrInfofinfo;
653656
inti;
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)

[8]ページ先頭

©2009-2025 Movatter.jp