forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita53c06a
committed
Prohibit parallel query when the isolation level is serializable.
In order for this to be safe, the code which hands true serializabilitywill need to taught that the SIRead locks taken by a parallel workerpertain to the same transaction as those taken by the parallel leader.Some further changes may be needed as well. Until the necessaryadaptations are made, don't generate parallel plans in serializablemode, and if a previously-generated parallel plan is used afterserializable mode has been activated, run it serially.This fixes a bug in commit7aea8e4.1 parentbfc78d7 commita53c06a
File tree
2 files changed
+18
-0
lines changed- src/backend
- access/transam
- optimizer/plan
2 files changed
+18
-0
lines changedLines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
138 | 146 |
| |
139 | 147 |
| |
140 | 148 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| 23 | + | |
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
| |||
210 | 211 |
| |
211 | 212 |
| |
212 | 213 |
| |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
213 | 222 |
| |
214 | 223 |
| |
215 | 224 |
| |
216 | 225 |
| |
217 | 226 |
| |
| 227 | + | |
218 | 228 |
| |
219 | 229 |
| |
220 | 230 |
| |
|
0 commit comments
Comments
(0)