- Notifications
You must be signed in to change notification settings - Fork4.9k
Commite0eaeaf
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 parent71aeaf2 commite0eaeaf
2 files changed
+26
-11
lines changedLines changed: 20 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
905 | 905 |
| |
906 | 906 |
| |
907 | 907 |
| |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
908 | 912 |
| |
909 | 913 |
| |
910 | 914 |
| |
| |||
928 | 932 |
| |
929 | 933 |
| |
930 | 934 |
| |
931 |
| - | |
| 935 | + | |
932 | 936 |
| |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
933 | 948 |
| |
934 |
| - | |
935 |
| - | |
936 |
| - | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
937 | 952 |
| |
938 |
| - | |
| 953 | + | |
939 | 954 |
| |
940 | 955 |
| |
941 | 956 |
| |
942 |
| - | |
943 |
| - | |
944 |
| - | |
945 |
| - | |
946 |
| - | |
947 |
| - | |
948 | 957 |
| |
949 | 958 |
| |
950 | 959 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1073 | 1073 |
| |
1074 | 1074 |
| |
1075 | 1075 |
| |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
1076 | 1082 |
| |
1077 | 1083 |
| |
1078 | 1084 |
| |
|
0 commit comments
Comments
(0)