forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit275b341
committed
Prevent parallel index build in a standalone backend.
This can't work if there's no postmaster, and indeed the code got anassertion failure trying. There should be a check on IsUnderPostmastergating the use of parallelism, as the planner has for ordinaryparallel queries.Commit40d964e got this right, so follow its model of checkingIsUnderPostmaster at the same place where we check formax_parallel_maintenance_workers == 0. In general, new codeimplementing parallel utility operations should do the same.Report and patch by Yulin Pei, cosmetically adjusted by me.Back-patch to v11 where this code came in.Discussion:https://postgr.es/m/HK0PR01MB22747D839F77142D7E76A45DF4F50@HK0PR01MB2274.apcprd01.prod.exchangelabs.com1 parentb1738ff commit275b341
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6375 | 6375 |
| |
6376 | 6376 |
| |
6377 | 6377 |
| |
6378 |
| - | |
6379 |
| - | |
| 6378 | + | |
| 6379 | + | |
| 6380 | + | |
| 6381 | + | |
| 6382 | + | |
6380 | 6383 |
| |
6381 | 6384 |
| |
6382 | 6385 |
| |
|
0 commit comments
Comments
(0)