Re: observations about temporary tables and schemas
От | Tom Lane |
---|---|
Тема | Re: observations about temporary tables and schemas |
Дата | |
Msg-id | 25914.1063738514@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | observations about temporary tables and schemas ("Merlin Moncure" <merlin.moncure@rcsonline.com>) |
Список | pgsql-hackers |
"Merlin Moncure" <merlin.moncure@rcsonline.com> 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
В списке pgsql-hackers по дате отправления: