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

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
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)
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