What Are the Schemas Starting with pg_toast_temp* or pg_temp*?
When you query the schema list, the query result may contain schemas starting with pg_temp* or pg_toast_temp*, as shown in the following figure.
1
|
SELECT * FROM pg_namespace; |
These schemas are created when temporary tables are created. Each session has an independent schema starting with pg_temp to ensure that the temporary tables are visible only to the current session. Therefore, you are not advised to manually delete schemas starting with pg_temp or pg_toast_temp during routine operations.
Temporary tables are visible only in the current session and are automatically deleted after the session ends. The corresponding schemas are also deleted.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot