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
+ alias
pg_temp>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
temporary-table schema, which is searched first by default, and
is normally writable by anyone. A secure arrangement can be had
by forcing the temporary schema to be searched last. To do this,
- write pg_temp> as the last entry in search_path>.
+ write
pg_temp>pg_temp>securing functions>> as the last entry in search_path>.
This function illustrates safe usage: