- Notifications
You must be signed in to change notification settings - Fork5
Commit4212cb7
committed
Fix interaction of parallel query with prepared statements.
Previously, a prepared statement created via a Parse message could geta parallel plan, but one created with a PREPARE statement could not.This state of affairs was due to confusion on my (rhaas) part: Ierroneously believed that a CREATE TABLE .. AS EXECUTE statement couldonly be performed with a prepared statement by PREPARE, but in factone created by a Prepare message works just as well. Therefore, itmakes no sense to allow parallel query in one case but not the other.To fix, allow parallel query with all prepared statements, but runthe parallel plan serially (i.e. without workers) in the case ofCREATE TABLE .. AS EXECUTE. Also, document this.Amit Kapila and Tobias Bussman, plus an extra sentence ofdocumentation by me.1 parentcb9dcbc commit4212cb7
File tree
3 files changed
+14
-4
lines changed- doc/src/sgml
- src/backend
- commands
- executor
3 files changed
+14
-4
lines changedLines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
227 | 227 |
| |
228 | 228 |
| |
229 | 229 |
| |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
230 | 239 |
| |
231 | 240 |
| |
232 | 241 |
| |
|
Lines 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: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1540 | 1540 |
| |
1541 | 1541 |
| |
1542 | 1542 |
| |
1543 |
| - | |
1544 |
| - | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
1545 | 1546 |
| |
1546 |
| - | |
| 1547 | + | |
1547 | 1548 |
| |
1548 | 1549 |
| |
1549 | 1550 |
| |
|
0 commit comments
Comments
(0)