Re: [HACKERS] views on temp tables

2002-03-25 Thread Bruce Momjian
Tom Lane wrote: > Neil Conway <[EMAIL PROTECTED]> writes: > > Currently, PostgreSQL allows this -- when the session ends and the temp > > table is dropped, an subsequent queries on the view fail. Is this the > > optimal behavior? > > Well, I think it's better than refusing views on temp tables, a

Re: [HACKERS] views on temp tables

2002-03-24 Thread Tom Lane
Neil Conway <[EMAIL PROTECTED]> writes: > Currently, PostgreSQL allows this -- when the session ends and the temp > table is dropped, an subsequent queries on the view fail. Is this the > optimal behavior? Well, I think it's better than refusing views on temp tables, as the spec would have us do.

Re: [HACKERS] views on temp tables

2002-03-24 Thread Bruce Momjian
Neil Conway wrote: > I was browsing through SQL92 and I noticed this, when discussing the > CREATE VIEW syntax: > > "5) Any that is specified in the shall > be different from the of any declaration>." > > ( is the defintion of the view. This basically says > that you're not allowed to create

[HACKERS] views on temp tables

2002-03-24 Thread Neil Conway
I was browsing through SQL92 and I noticed this, when discussing the CREATE VIEW syntax: "5) Any that is specified in the shall be different from the of any ." ( is the defintion of the view. This basically says that you're not allowed to create views on temp tables.) Currently, PostgreSQL a