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

Commit88ef48c

Browse files
committed
Fix parallel index builds for dynamic_shared_memory_type=none.
The previous code failed to realize that this setting effectivelydisables parallelism, and would crash if it decided to attemptparallelism anyway. Instead, treat it as a disabling condition.Kyotaro Horiguchi, who also reported the issue. Reviewed by MichaelPaquier and Peter Geoghegan.Discussion:http://postgr.es/m/20180209.170635.256350357.horiguchi.kyotaro@lab.ntt.co.jp
1 parent80f021e commit88ef48c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/optimizer/plan/planner.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5825,7 +5825,8 @@ plan_create_index_workers(Oid tableOid, Oid indexOid)
58255825
doubleallvisfrac;
58265826

58275827
/* Return immediately when parallelism disabled */
5828-
if (max_parallel_maintenance_workers==0)
5828+
if (dynamic_shared_memory_type==DSM_IMPL_NONE||
5829+
max_parallel_maintenance_workers==0)
58295830
return0;
58305831

58315832
/* Set up largely-dummy planner state */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp