Re: Temp table visibility - Mailing list pgsql-general

From Andrew Sullivan
Subject Re: Temp table visibility
Date
Msg-id 20110805130551.GC49271@shinkuro.com
Whole thread Raw
In response to Temp table visibility  (JJ <johnjohnson@thewildstoat.com>)
Responses Re: Temp table visibility
List pgsql-general
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
samename as an existing table will be used instead of the permanent table.  It also states that the permanent table can
beaccessed via its schema-qualified name.  I may have answered my own question but is there any way to emulate this
tablevisibility functionality when referencing tables by their schema-qualified name?  
> --

No, because the schema qualification is what makes for the visibility
functionality.  To draw an analogy, suppose your $PATH includes
/usr/bin but not /usr/local/bin, and that you have two psql binaries,
one in /usr/bin and one in /usr/local/bin.  If you type psql, you get
the one in /usr/bin.  If you type /usr/local/bin/psql, you always get
that one, even though it's not in the $PATH.  The $PATH doesn't affect
the visibility of the string |psql|, just adds an implicit way of
finding such a string if it's on the path somewhere.

A

--
Andrew Sullivan
ajs@crankycanuck.ca

pgsql-general by date:

Previous
From: Ioana Danes
Date:
Subject: Re: hstore installed in a separate schema
Next
From: Scott Marlowe
Date:
Subject: Re: Select count with offset returns nothing.