"Merlin Moncure" <[EMAIL PROTECTED]> writes: > The other and more interesting way is to manually jump into the > temporary schema (eg. pg_temp_x) that hosts a temp table constructed by > another backend. While this is unlikely to happen in a normal setting, > the server does allow it. Following this, backend X can both see and > manipulate a temporary table set up by backend Y, including table schema > manipulation.
Not unless backend X is run by a superuser. There are privilege restrictions against this for ordinary users. The other behaviors you note are consequences of the current implementation and might change in future. > Also, Is the prohibition of using schemas for temp tables a SQL spec > requirement or a technical consideration? The SQL spec's notion of temp tables is only tenuously related to ours in the first place :-(. However, the spec appears to require that references to temp tables be unqualified names, so AFAICT it's not expected that applications can reference more than one schema's worth of temp tables anyway. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster