forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit875353b
committed
Fix assorted core dumps and Assert failures that could occur during
AbortTransaction or AbortSubTransaction, when trying to clean up after anerror that prevented (sub)transaction start from completing:* access to TopTransactionResourceOwner that might not exist* assert failure in AtEOXact_GUC, if AtStart_GUC not called yet* assert failure or core dump in AfterTriggerEndSubXact, if AfterTriggerBeginSubXact not called yetPer testing by injecting elog(ERROR) at successive steps in StartTransactionand StartSubTransaction. It's not clear whether all of these cases couldreally occur in the field, but at least one of them is easily exposed bysimple stress testing, as per my accidental discovery yesterday.1 parent74f4be6 commit875353b
3 files changed
+54
-37
lines changedLines changed: 33 additions & 30 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| |||
2170 | 2170 |
| |
2171 | 2171 |
| |
2172 | 2172 |
| |
2173 |
| - | |
| 2173 | + | |
| 2174 | + | |
2174 | 2175 |
| |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
2175 | 2179 |
| |
2176 |
| - | |
2177 |
| - | |
2178 |
| - | |
2179 |
| - | |
2180 |
| - | |
2181 |
| - | |
2182 |
| - | |
2183 |
| - | |
2184 |
| - | |
2185 |
| - | |
2186 |
| - | |
2187 |
| - | |
2188 |
| - | |
2189 |
| - | |
2190 |
| - | |
2191 |
| - | |
2192 |
| - | |
2193 |
| - | |
2194 |
| - | |
2195 |
| - | |
2196 |
| - | |
2197 |
| - | |
2198 |
| - | |
2199 |
| - | |
2200 |
| - | |
2201 |
| - | |
2202 |
| - | |
2203 |
| - | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
| 2195 | + | |
| 2196 | + | |
| 2197 | + | |
| 2198 | + | |
| 2199 | + | |
| 2200 | + | |
| 2201 | + | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
| 2205 | + | |
| 2206 | + | |
2204 | 2207 |
| |
2205 | 2208 |
| |
2206 | 2209 |
| |
|
Lines changed: 12 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
3690 | 3690 |
| |
3691 | 3691 |
| |
3692 | 3692 |
| |
3693 |
| - | |
3694 |
| - | |
3695 | 3693 |
| |
3696 | 3694 |
| |
| 3695 | + | |
3697 | 3696 |
| |
3698 | 3697 |
| |
3699 | 3698 |
| |
| |||
3706 | 3705 |
| |
3707 | 3706 |
| |
3708 | 3707 |
| |
3709 |
| - | |
3710 |
| - | |
| 3708 | + | |
| 3709 | + | |
| 3710 | + | |
| 3711 | + | |
| 3712 | + | |
| 3713 | + | |
| 3714 | + | |
| 3715 | + | |
| 3716 | + | |
| 3717 | + | |
3711 | 3718 |
| |
3712 | 3719 |
| |
3713 | 3720 |
| |
|
Lines changed: 9 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| |||
3904 | 3904 |
| |
3905 | 3905 |
| |
3906 | 3906 |
| |
3907 |
| - | |
| 3907 | + | |
| 3908 | + | |
| 3909 | + | |
| 3910 | + | |
| 3911 | + | |
| 3912 | + | |
| 3913 | + | |
| 3914 | + | |
3908 | 3915 |
| |
3909 | 3916 |
| |
3910 | 3917 |
| |
|
0 commit comments
Comments
(0)