Expand description
A session’s temporary namespace, pg_temp_N, and the TOAST namespace that accompanies it, pg_toast_temp_N. The session’s first temporary object creates both, as InitTempTableNamespace does, each taking the database counter’s next OID before the object takes its own; a rollback past that creation forgets them, and the session’s next temporary object creates them anew.
Structs§
- Temporary
Namespace - A session’s created temporary namespace as the catalog shows it.
- Temporary
Namespace Oids - The OIDs of a session’s temporary namespace and of its TOAST namespace, allocated in that order.
Constants§
- TEMPORARY_
SCHEMA_ PREFIX - The name prefix of every temporary namespace, which a session’s number completes.
- TEMPORARY_
TOAST_ SCHEMA_ PREFIX - The name prefix of every temporary namespace’s TOAST namespace.
Functions§
- is_
temporary_ schema_ name - Whether
namenames some session’s temporary namespace or its TOAST namespace, asisAnyTempNamespacedecides by the name alone. - temporary_
toast_ schema_ name - The TOAST namespace name that accompanies the temporary namespace
schema.