forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3eff168
committed
Avoid crash in rare case of concurrent DROP
When a role being dropped contains is referenced by catalog objects thatare concurrently also being dropped, a crash can result while trying toconstruct the string that describes the objects. Suppress that byignoring objects whose descriptions are returned as NULL.The majority of relevant codesites were already cautious about thisalready; we had just missed a couple.This is an old bug, so backpatch all the way back.Reported-by: Alexander Lakhin <exclusion@gmail.com>Discussion:https://postgr.es/m/17126-21887f04508cb5c8@postgresql.org1 parent7dc9a31 commit3eff168
2 files changed
+26
-11
lines changedLines changed: 20 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1108 | 1108 |
| |
1109 | 1109 |
| |
1110 | 1110 |
| |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
1111 | 1115 |
| |
1112 | 1116 |
| |
1113 | 1117 |
| |
| |||
1132 | 1136 |
| |
1133 | 1137 |
| |
1134 | 1138 |
| |
1135 |
| - | |
| 1139 | + | |
1136 | 1140 |
| |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
1137 | 1152 |
| |
1138 |
| - | |
1139 |
| - | |
1140 |
| - | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
1141 | 1156 |
| |
1142 |
| - | |
| 1157 | + | |
1143 | 1158 |
| |
1144 | 1159 |
| |
1145 | 1160 |
| |
1146 |
| - | |
1147 |
| - | |
1148 |
| - | |
1149 |
| - | |
1150 |
| - | |
1151 |
| - | |
1152 | 1161 |
| |
1153 | 1162 |
| |
1154 | 1163 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1198 | 1198 |
| |
1199 | 1199 |
| |
1200 | 1200 |
| |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
1201 | 1207 |
| |
1202 | 1208 |
| |
1203 | 1209 |
| |
|
0 commit comments
Comments
(0)