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 74106fe commit f3bcfc7Copy full SHA for f3bcfc7
contrib/pg_pathman/pl_funcs.c
@@ -101,7 +101,7 @@ find_or_create_range_partition(PG_FUNCTION_ARGS)
101
prel = get_pathman_relation_info(relid, NULL);
102
rangerel = get_pathman_range_relation(relid, NULL);
103
104
- if (!prel || !rangerel || rangerel->ranges.length == 0)
+ if (!prel || !rangerel)
105
PG_RETURN_NULL();
106
107
cmp_proc_oid = get_opfamily_proc(tce->btree_opf,
@@ -135,6 +135,7 @@ find_or_create_range_partition(PG_FUNCTION_ARGS)
135
pos = range_binary_search(rangerel, &cmp_func, value, &found);
136
if (found)
137
{
138
+ LWLockRelease(edit_partitions_lock);
139
LWLockRelease(load_config_lock);
140
PG_RETURN_OID(ranges[pos].child_oid);
141
}
0 commit comments