- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit898e0c6
committed
Forbid DROP SCHEMA on temporary namespaces
This operation was possible for the owner of the schema or a superuser.Down to 9.4, doing this operation would cause inconsistencies in asession whose temporary schema was dropped, particularly if trying tocreate new temporary objects after the drop. A more annoyingconsequence is a crash of autovacuum on an assertion failure whenlogging information about an orphaned temp table dropped. Note thatbecause of246a6c8 (present in v11~), which has made the removal oforphaned temporary tables more aggressive, the failure could betriggered more easily, but it is possible to reproduce down to 9.4.Reported-by: Mahendra Singh, Prabhat SahuAuthor: Michael PaquierReviewed-by: Kyotaro Horiguchi, Mahendra SinghDiscussion:https://postgr.es/m/CAKYtNAr9Zq=1-ww4etHo-VCC-k120YxZy5OS01VkaLPaDbv2tg@mail.gmail.comBackpatch-through: 9.41 parent5c0a132 commit898e0c6
1 file changed
+16
-0
lines changedLines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
| |||
116 | 117 |
| |
117 | 118 |
| |
118 | 119 |
| |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
119 | 135 |
| |
120 | 136 |
| |
121 | 137 |
| |
|
0 commit comments
Comments
(0)