Re: [GENERAL] Temp table visibility

2011-08-05 Thread Andrew Sullivan
On Fri, Aug 05, 2011 at 10:55:08AM -0400, Tom Lane wrote: > Also, you can change the priority if you have a mind to, by adding > "pg_temp" to the search_path explicitly, for example Hey, that's cool, and it never occurred to me. The current text in the 9.0 manual says this: Likewise, the cur

Re: [GENERAL] Temp table visibility

2011-08-05 Thread Tom Lane
Andrew Sullivan writes: > On Fri, Aug 05, 2011 at 08:35:37AM -0400, JJ wrote: >> I was recently looking at the way "create temp table as" works and the >> manual specifies that temp tables given the same name as an existing table >> will be used instead of the permanent table. It also states th

Re: [GENERAL] Temp table visibility

2011-08-05 Thread Andrew Sullivan
On Fri, Aug 05, 2011 at 08:35:37AM -0400, JJ wrote: > Hello all, > > I was recently looking at the way "create temp table as" works and the manual > specifies that temp tables given the same name as an existing table will be > used instead of the permanent table. It also states that the permane

[GENERAL] Temp table visibility

2011-08-05 Thread JJ
Hello all, I was recently looking at the way "create temp table as" works and the manual specifies that temp tables given the same name as an existing table will be used instead of the permanent table. It also states that the permanent table can be accessed via its schema-qualified name. I ma