From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: observations about temporary tables and schemas |
Date: | 2003-09-16 18:55:14 |
Message-ID: | 25914.1063738514@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-interfaces pgsql-odbc |
"Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Merlin Moncure | 2003-09-16 19:23:57 | Re: observations about temporary tables and schemas |
Previous Message | Merlin Moncure | 2003-09-16 18:37:32 | observations about temporary tables and schemas |
From | Date | Subject | |
---|---|---|---|
Next Message | Jim Buttafuoco | 2003-09-16 20:42:17 | Re: Trigger updates MS SQL table |
Previous Message | Merlin Moncure | 2003-09-16 18:37:32 | observations about temporary tables and schemas |
From | Date | Subject | |
---|---|---|---|
Next Message | Mikhail Umorin | 2003-09-16 20:40:24 | Delphi7, ADO, ODBC and PostgreSQL connection problems |
Previous Message | Merlin Moncure | 2003-09-16 18:37:32 | observations about temporary tables and schemas |