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

Re: Alter session set current_schema

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: "Salerno, Vincent" <vincent(dot)salerno(at)lmco(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Alter session set current_schema
Date: 2004-09-11 06:00:11
Message-ID: 1094882410.14510.976.camel@linda (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
On Fri, 2004-09-10 at 15:34, Salerno, Vincent wrote:
> In Oracle you can log on using OS authentication & then:
> 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(at)lfix(dot)co(dot)uk
Isle of Wight                    
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 

In response to

pgsql-novice by date

Next:From: Tom LaneDate: 2004-09-11 06:03:30
Subject: Re: PL/pgSQL Function Problem
Previous:From: Oliver ElphickDate: 2004-09-11 05:55:03
Subject: Re: Installing language plpgsql

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