File tree 1 file changed +0
-16
lines changed
1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 26
26
#include "nodes/makefuncs.h"
27
27
#include "parser/parse_type.h"
28
28
#include "utils/builtins.h"
29
- #include "utils/lsyscache.h"
30
29
#include "utils/syscache.h"
31
30
32
31
@@ -117,21 +116,6 @@ RemoveObjects(DropStmt *stmt)
117
116
ReleaseSysCache (tup );
118
117
}
119
118
120
- /*
121
- * Prevent the drop of a temporary schema, be it owned by the current
122
- * session or another backend as this would mess up with the callback
123
- * registered to clean up temporary objects at the end of a session.
124
- * Note also that the creation of any follow-up temporary object would
125
- * result in inconsistencies within the session whose temporary schema
126
- * has been dropped.
127
- */
128
- if (stmt -> removeType == OBJECT_SCHEMA &&
129
- isAnyTempNamespace (address .objectId ))
130
- ereport (ERROR ,
131
- (errcode (ERRCODE_WRONG_OBJECT_TYPE ),
132
- errmsg ("cannot drop temporary schema \"%s\"" ,
133
- get_namespace_name (address .objectId ))));
134
-
135
119
/* Check permissions. */
136
120
namespaceId = get_object_namespace (& address );
137
121
if (!OidIsValid (namespaceId ) ||
You can’t perform that action at this time.
0 commit comments