forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit682ce91
committed
Allow parallel query for prepared statements with generic plans.
This was always intended to work, but due to an oversight inmax_parallel_hazard_walker, it didn't. In testing, we missed thefact that it was only working for custom plans, where the parametervalue has been substituted for the parameter itself early enoughthat everything worked. In a generic plan, the Param node survivesand must be treated as parallel-safe. SerializeParamList providesfor the transmission of parameter values to workers.Amit Kapila with help from Kuntal Ghosh. Some changes by me.Discussion:http://postgr.es/m/CAA4eK1+_BuZrmVCeua5Eqnm4Co9DAXdM5HPAOE2J19ePbR912Q@mail.gmail.com1 parent6784d7a commit682ce91
File tree
4 files changed
+37
-7
lines changed- src
- backend/optimizer/util
- pl/plpgsql/src
- test/regress
- expected
- sql
4 files changed
+37
-7
lines changedLines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1223 | 1223 |
| |
1224 | 1224 |
| |
1225 | 1225 |
| |
1226 |
| - | |
1227 |
| - | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
1228 | 1229 |
| |
1229 | 1230 |
| |
1230 | 1231 |
| |
1231 | 1232 |
| |
1232 | 1233 |
| |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
1233 | 1237 |
| |
1234 | 1238 |
| |
1235 | 1239 |
| |
|
Lines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6588 | 6588 |
| |
6589 | 6589 |
| |
6590 | 6590 |
| |
6591 |
| - | |
6592 |
| - | |
| 6591 | + | |
| 6592 | + | |
6593 | 6593 |
| |
6594 | 6594 |
| |
6595 | 6595 |
| |
| |||
6616 | 6616 |
| |
6617 | 6617 |
| |
6618 | 6618 |
| |
6619 |
| - | |
6620 |
| - | |
6621 |
| - | |
| 6619 | + | |
| 6620 | + | |
| 6621 | + | |
6622 | 6622 |
| |
6623 | 6623 |
| |
6624 | 6624 |
| |
|
Lines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
101 | 101 |
| |
102 | 102 |
| |
103 | 103 |
| |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
104 | 124 |
| |
105 | 125 |
| |
106 | 126 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
42 | 48 |
| |
43 | 49 |
| |
44 | 50 |
| |
|
0 commit comments
Comments
(0)