pg_my_temp_schema () → oidReturns the OID of the current session's temporary schema, or zero if it has none (because it has not created any temporary tables).
FUNCTIONS / SYSTEM INFORMATION FUNCTIONS AND OPERATORS
pg_my_temp_schema
Read PG 18 manual ↗Returns the OID of the current session's temporary schema, or zero if it has none (because it has not created any temporary tables).
Signatures & examples
Version history 1
- PG 12 → 13changed
Definition snapshot: 2026-09-14T13:14:25.684213+00:00@99e6866c · English manual source