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

Commit3488a71

Browse files
committed
Merge branch 'pathman_pgpro9_5' of gitlab.postgrespro.ru:pgpro-dev/postgrespro into pathman_pgpro9_5
2 parents94e8576 +f3bcfc7 commit3488a71

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)

[8]ページ先頭

©2009-2025 Movatter.jp