doc-exports/docs/dws/umn/dws_03_2106.html
Lu, Huayi 95132e24fc DWS UMN 830.201_new version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Reviewed-by: Rechenburg, Matthias <matthias.rechenburg@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-05-27 11:54:34 +00:00

2.4 KiB

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.