forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitad9a274
committed
Fix crash when canceling parallel query
elog(FATAL) would end up calling PortalCleanup(), which would callexecutor shutdown code, which could fail and crash, especially underparallel query. This was introduced by8561e48, which did not want to mark anactive portal as failed by a normal transaction abort anymore. But wedo need to do that for an elog(FATAL) exit. Introduce a variableshmem_exit_inprogress similar to the existing proc_exit_inprogress, sowe can tell whether we are in the FATAL exit scenario.Reported-by: Andres Freund <andres@anarazel.de>1 parent49bff41 commitad9a274
File tree
3 files changed
+16
-0
lines changed- src
- backend
- storage/ipc
- utils/mmgr
- include/storage
3 files changed
+16
-0
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
42 | 47 |
| |
43 | 48 |
| |
44 | 49 |
| |
| |||
214 | 219 |
| |
215 | 220 |
| |
216 | 221 |
| |
| 222 | + | |
| 223 | + | |
217 | 224 |
| |
218 | 225 |
| |
219 | 226 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| 25 | + | |
25 | 26 |
| |
26 | 27 |
| |
27 | 28 |
| |
| |||
757 | 758 |
| |
758 | 759 |
| |
759 | 760 |
| |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
760 | 768 |
| |
761 | 769 |
| |
762 | 770 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
| 66 | + | |
66 | 67 |
| |
67 | 68 |
| |
68 | 69 |
| |
|
0 commit comments
Comments
(0)