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

Commita6ca7c2

Browse files
committed
fix check_overlap(): return false if there's no partitions
1 parentf19a764 commita6ca7c2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎src/pl_range_funcs.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,17 @@ check_overlap(PG_FUNCTION_ARGS)
104104
RangeEntry*ranges;
105105
constPartRelationInfo*prel;
106106

107+
108+
/* Try fetching the PartRelationInfo structure */
107109
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 */
108115
shout_if_prel_is_invalid(parent_oid,prel,PT_RANGE);
109116

117+
/* Get base type of partitioned column */
110118
part_type=getBaseType(prel->atttype);
111119

112120
/* Fetch comparison functions */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp