Skip to content

Commit 3488a71

Browse files
committed
Merge branch 'pathman_pgpro9_5' of gitlab.postgrespro.ru:pgpro-dev/postgrespro into pathman_pgpro9_5
2 parents 94e8576 + f3bcfc7 commit 3488a71

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

contrib/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ SUBDIRS = \
5353
tsm_system_time \
5454
tsearch2 \
5555
unaccent \
56-
vacuumlo
56+
vacuumlo \
57+
pg_pathman
5758

5859
ifeq ($(with_openssl),yes)
5960
SUBDIRS += sslinfo

contrib/pg_pathman/pl_funcs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ find_or_create_range_partition(PG_FUNCTION_ARGS)
101101
prel = get_pathman_relation_info(relid, NULL);
102102
rangerel = get_pathman_range_relation(relid, NULL);
103103

104-
if (!prel || !rangerel || rangerel->ranges.length == 0)
104+
if (!prel || !rangerel)
105105
PG_RETURN_NULL();
106106

107107
cmp_proc_oid = get_opfamily_proc(tce->btree_opf,
@@ -135,6 +135,7 @@ find_or_create_range_partition(PG_FUNCTION_ARGS)
135135
pos = range_binary_search(rangerel, &cmp_func, value, &found);
136136
if (found)
137137
{
138+
LWLockRelease(edit_partitions_lock);
138139
LWLockRelease(load_config_lock);
139140
PG_RETURN_OID(ranges[pos].child_oid);
140141
}

0 commit comments

Comments
 (0)