Skip to main content

Module temporary_namespace

Module temporary_namespace 

Source
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§

TemporaryNamespace
A session’s created temporary namespace as the catalog shows it.
TemporaryNamespaceOids
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 name names some session’s temporary namespace or its TOAST namespace, as isAnyTempNamespace decides by the name alone.
temporary_toast_schema_name
The TOAST namespace name that accompanies the temporary namespace schema.