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 f19a764 commit a6ca7c2Copy full SHA for a6ca7c2
src/pl_range_funcs.c
@@ -104,9 +104,17 @@ check_overlap(PG_FUNCTION_ARGS)
104
RangeEntry *ranges;
105
const PartRelationInfo *prel;
106
107
+
108
+ /* Try fetching the PartRelationInfo structure */
109
prel = get_pathman_relation_info(parent_oid);
110
111
+ /* If there's no prel, return FALSE (overlap is not possible) */
112
+ if (!prel) PG_RETURN_BOOL(false);
113
114
+ /* Emit an error if it is not partitioned by RANGE */
115
shout_if_prel_is_invalid(parent_oid, prel, PT_RANGE);
116
117
+ /* Get base type of partitioned column */
118
part_type = getBaseType(prel->atttype);
119
120
/* Fetch comparison functions */
0 commit comments