Skip site navigation (1) Skip section navigation (2)

Re: schema

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Genix <genix(at)list(dot)ru>
Cc: pgsql-ru-general <pgsql-ru-general(at)postgresql(dot)org>
Subject: Re: schema
Date: 2005-07-13 08:45:34
Message-ID: Pine.GSO.4.63.0507131244270.1099@ra.sai.msu.su (view raw or flat)
Thread:
Lists: 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(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83
---559023410-539695031-1121244334=:1099--

In response to

  • schema at 2005-07-13 08:13:02 from Genix

pgsql-ru-general by date

Next:From: Viktor VislobokovDate: 2005-07-13 09:01:20
Subject: Re: schema
Previous:From: GenixDate: 2005-07-13 08:13:02
Subject: schema

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group