Re: schema - Mailing list pgsql-ru-general

From Oleg Bartunov
Subject Re: schema
Date
Msg-id Pine.GSO.4.63.0507131244270.1099@ra.sai.msu.su
Whole thread Raw
In response to schema  (Genix <genix@list.ru>)
List pgsql-ru-general
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---559023410-539695031-1121244334=:1099
Content-Type: TEXT/PLAIN; charset=koi8-r; format=flowed
Content-Transfer-Encoding: 8BIT

On Wed, 13 Jul 2005, Genix wrote:

> Приветствую!
>
> Подскажите, пожалуйста.
> Как можно (и можно ли) обращаться к таблице, созданной:
>
> create table schema_name.table_name()??
>
> Возможно ли в этом случае обратиться:
>
> select * from table_name
>
> без указания схемы?
Да, если ты укажешь в schema_name в search_path в сессии или в
postgresql.conf

Вот как у меня:

www=# show search_path;
      search_path
----------------------
  $user,public,contrib
(1 row)



>
> psql выдает ошибку:
>
> ERROR:  relation "table_name" does not exist
>
> в то время, как select * from schema_name.table_name
> работает нормально
>
>

     Regards,
         Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83
---559023410-539695031-1121244334=:1099--

pgsql-ru-general by date:

Previous
From: Genix
Date:
Subject: schema
Next
From: "Viktor Vislobokov"
Date:
Subject: Re: schema