Question

I have tried various ways to search for pg_temp in the manual, but could not find it. Is it documented in the manual?

Was it helpful?

Solution

It is documented at https://www.postgresql.org/docs/current/static/runtime-config-client.html

Likewise, the current session's temporary-table schema, pg_temp_nnn, is always searched if it exists. It can be explicitly listed in the path by using the alias pg_temp. If it is not listed in the path then it is searched first (even before pg_catalog). However, the temporary schema is only searched for relation (table, view, sequence, etc) and data type names. It is never searched for function or operator names.

Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange
scroll top