From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Tomasz Myrta <jasiek(at)lamer(dot)pl>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: temporary views |
Date: | 2001-10-07 17:54:06 |
Message-ID: | Pine.LNX.4.30.0110070033320.871-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Bruce Momjian writes:
> Seems like a TODO item, at least. What we could do is to create views
> as TEMP if they use temp tables and drop the view as soon as the session
> ends . You of course would have to recreate the view each time but
> because it is a _temp_ view, it could be done reliably by multiple
> backends at the same time.
SQL requires that no table in a view declaration be a temporary table.
> Added to TODO:
>
> * Allow views on temporary tables to behave as temporary views
I don't think this is a good idea. Especially since our temp tables are
allowed to shadow persistent tables, it would not be obvious whether the
view you're creating with any given statement will become persistent or
temporary.
I think an explicit CREATE TEMPORARY VIEW command would be fair and safe,
but until that is done we should probably concentrate on the SQL standard
behaviour.
--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter
From | Date | Subject | |
---|---|---|---|
Next Message | Aasmund Midttun Godal | 2001-10-08 00:48:17 | PlPerl |
Previous Message | Masaru Sugawara | 2001-10-06 09:54:21 | Re: challenging query |