- Notifications
You must be signed in to change notification settings - Fork5
Commit57a6a72
committed
Enable parallelism for prepared statements and extended query protocol.
Parallel query can't handle running a query only partially rather thanto completion. However, there seems to be no way to run a statementprepared via SQL PREPARE other than to completion, so we can enable itthere without a problem.The situation is more complicated for the extend query protocol.libpq seems to provide no way to send an Execute message with anon-zero rowcount, but some other client might. If that happens, anda parallel plan was chosen, we'll execute the parallel plan withoutusing any workers, which may be somewhat inefficient but should stillwork. Hopefully this won't be a problem; users can always setmax_parallel_degree=0 to avoid choosing parallel plans in the firstplace.Amit Kapila, reviewed by me.1 parent25924ac commit57a6a72
2 files changed
+2
-2
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
159 | 159 |
| |
160 | 160 |
| |
161 | 161 |
| |
162 |
| - | |
| 162 | + | |
163 | 163 |
| |
164 | 164 |
| |
165 | 165 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1381 | 1381 |
| |
1382 | 1382 |
| |
1383 | 1383 |
| |
1384 |
| - | |
| 1384 | + | |
1385 | 1385 |
| |
1386 | 1386 |
| |
1387 | 1387 |
| |
|
0 commit comments
Comments
(0)