forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit846fcc8
committed
Fix problems with the "role" GUC and parallel query.
Without this fix, dropping a role can sometimes result in parallelquery failures in sessions that have used "SET ROLE" to assume thedropped role, even if that setting isn't active any more.Report by Pavan Deolasee. Patch by Amit Kapila, reviewed by me.Discussion:http://postgr.es/m/CABOikdOomRcZsLsLK+Z+qENM1zxyaWnAvFh3MJZzZnnKiF+REg@mail.gmail.com1 parent5f39712 commit846fcc8
File tree
5 files changed
+48
-16
lines changed- src
- backend
- access/transam
- utils/misc
- include/utils
- test/regress
- expected
- sql
5 files changed
+48
-16
lines changedLines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
| 78 | + | |
78 | 79 |
| |
79 | 80 |
| |
80 | 81 |
| |
| 82 | + | |
81 | 83 |
| |
82 | 84 |
| |
83 | 85 |
| |
| |||
296 | 298 |
| |
297 | 299 |
| |
298 | 300 |
| |
| 301 | + | |
| 302 | + | |
299 | 303 |
| |
300 | 304 |
| |
301 | 305 |
| |
| |||
1115 | 1119 |
| |
1116 | 1120 |
| |
1117 | 1121 |
| |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
1118 | 1129 |
| |
1119 | 1130 |
| |
1120 | 1131 |
| |
|
Lines changed: 9 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
446 | 446 |
| |
447 | 447 |
| |
448 | 448 |
| |
| 449 | + | |
449 | 450 |
| |
450 | 451 |
| |
451 | 452 |
| |
| |||
492 | 493 |
| |
493 | 494 |
| |
494 | 495 |
| |
495 |
| - | |
496 | 496 |
| |
497 | 497 |
| |
498 | 498 |
| |
| |||
8986 | 8986 |
| |
8987 | 8987 |
| |
8988 | 8988 |
| |
| 8989 | + | |
| 8990 | + | |
| 8991 | + | |
| 8992 | + | |
| 8993 | + | |
8989 | 8994 |
| |
8990 | 8995 |
| |
8991 | 8996 |
| |
8992 | 8997 |
| |
8993 | 8998 |
| |
8994 |
| - | |
| 8999 | + | |
| 9000 | + | |
8995 | 9001 |
| |
8996 | 9002 |
| |
8997 | 9003 |
| |
| |||
9252 | 9258 |
| |
9253 | 9259 |
| |
9254 | 9260 |
| |
9255 |
| - | |
9256 | 9261 |
| |
9257 | 9262 |
| |
9258 | 9263 |
| |
9259 | 9264 |
| |
9260 | 9265 |
| |
9261 | 9266 |
| |
9262 | 9267 |
| |
9263 |
| - | |
9264 |
| - | |
9265 |
| - | |
9266 |
| - | |
9267 |
| - | |
9268 |
| - | |
9269 |
| - | |
9270 |
| - | |
9271 |
| - | |
9272 |
| - | |
9273 |
| - | |
9274 |
| - | |
9275 |
| - | |
| 9268 | + | |
9276 | 9269 |
| |
9277 | 9270 |
| |
9278 | 9271 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
245 | 245 |
| |
246 | 246 |
| |
247 | 247 |
| |
| 248 | + | |
248 | 249 |
| |
249 | 250 |
| |
250 | 251 |
| |
|
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
508 | 508 |
| |
509 | 509 |
| |
510 | 510 |
| |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
511 | 527 |
| |
512 | 528 |
| |
513 | 529 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
201 | 201 |
| |
202 | 202 |
| |
203 | 203 |
| |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
204 | 215 |
| |
205 | 216 |
| |
206 | 217 |
| |
|
0 commit comments
Comments
(0)