We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aa7d1c commit e251d2aCopy full SHA for e251d2a
src/pl_range_funcs.c
@@ -15,6 +15,7 @@
15
#include "utils.h"
16
#include "xact_handling.h"
17
18
+#include "access/transam.h"
19
#include "access/xact.h"
20
#include "catalog/heap.h"
21
#include "catalog/namespace.h"
@@ -1072,6 +1073,9 @@ build_range_condition(PG_FUNCTION_ARGS)
1072
1073
}
1074
else ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
1075
errmsg("'partition_relid' should not be NULL")));
1076
+ if (partition_relid < FirstNormalObjectId)
1077
+ ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
1078
+ errmsg("'partition_relid' must be normal object oid")));
1079
1080
if (!PG_ARGISNULL(1))
1081
{
0 commit comments