Re: Alter session set current_schema

Поиск
Список
Период
Сортировка
От Oliver Elphick
Тема Re: Alter session set current_schema
Дата
Msg-id 1094882410.14510.976.camel@linda
обсуждение исходный текст
Ответ на Alter session set current_schema  ("Salerno, Vincent" <vincent.salerno@lmco.com>)
Список pgsql-novice
On Fri, 2004-09-10 at 15:34, Salerno, Vincent wrote:
> In Oracle you can log on using OS authentication & then:
> ALTER SESSION SET CURRENT_SCHEMA= <schema name>;
>
> Is there anyway to do this in PostGres?

The equivalent is

  SET SEARCH_PATH TO <schema name>[,<other schema>]...;

You can use ALTER DATABASE SET SEARCH_PATH... to make this a permanent
change for everyone.

The default path is $user, public

--
Oliver Elphick                                          olly@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
                 ========================================
     "I am crucified with Christ; nevertheless I live; yet
      not I, but Christ liveth in me; and the life which I
      now live in the flesh I live by the faith of the Son
      of God, who loved me, and gave himself for me."
                                         Galatians 2:20


В списке pgsql-novice по дате отправления:

Предыдущее
От: Oliver Elphick
Дата:
Сообщение: Re: Installing language plpgsql
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] PL/pgSQL Function Problem