forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit02e20bb
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 parentc829fbc commit02e20bb
2 files changed
+26
-11
lines changedLines changed: 20 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1102 | 1102 |
| |
1103 | 1103 |
| |
1104 | 1104 |
| |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
1105 | 1109 |
| |
1106 | 1110 |
| |
1107 | 1111 |
| |
| |||
1127 | 1131 |
| |
1128 | 1132 |
| |
1129 | 1133 |
| |
1130 |
| - | |
| 1134 | + | |
1131 | 1135 |
| |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
1132 | 1147 |
| |
1133 |
| - | |
1134 |
| - | |
1135 |
| - | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
1136 | 1151 |
| |
1137 |
| - | |
| 1152 | + | |
1138 | 1153 |
| |
1139 | 1154 |
| |
1140 | 1155 |
| |
1141 |
| - | |
1142 |
| - | |
1143 |
| - | |
1144 |
| - | |
1145 |
| - | |
1146 |
| - | |
1147 | 1156 |
| |
1148 | 1157 |
| |
1149 | 1158 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1238 | 1238 |
| |
1239 | 1239 |
| |
1240 | 1240 |
| |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
1241 | 1247 |
| |
1242 | 1248 |
| |
1243 | 1249 |
| |
|
0 commit comments
Comments
(0)