Re: Temp table visibility

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: Temp table visibility
Дата
Msg-id 20110805130551.GC49271@shinkuro.com
обсуждение исходный текст
Ответ на Temp table visibility  (JJ <johnjohnson@thewildstoat.com>)
Ответы Re: Temp table visibility
Список 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 по дате отправления:

Предыдущее
От: Ioana Danes
Дата:
Сообщение: Re: hstore installed in a separate schema
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: Select count with offset returns nothing.