From: Adrian Klaver <adrian.klaver@gmail.com>
To: pgsql-sql@postgresql.org
Cc: Tony Capobianco <tcapobianco@prospectiv.com>
Subject: Re: create role
Date: Thu, 30 Dec 2010 14:23:10 -0800
Message-ID: <201012301423.10229.adrian.klaver@gmail.com> (raw)
In-Reply-To: <1293747263.1650.7.camel@tony1.localdomain>
References: <1293747263.1650.7.camel@tony1.localdomain>
On Thursday 30 December 2010 2:14:23 pm Tony Capobianco wrote:
> Hi,
> I'm successfully executing the below:
>
> create role developer login;
> alter role developer set default_tablespace=dev;
> alter role developer set search_path=dev,staging, esave, support, email,
> public;
>
> grant select on members to developer;
> grant create on schema dev to developer;
>
> However, when I do this:
> psql (8.4.5, server 8.4.2)
> Type "help" for help.
>
> esave_dw=> \d members
> Did not find any relation named "members".
> esave_dw=>
> esave_dw=> \d esave.members
> Table "esave.members"
> Column | Type | Modifiers
> ---------------------+-----------------------------+-----------
> memberid | numeric | not null
> etc....
>
> How can I get this so I don't have to preface the \d with the schema
> name every time?
>
> Thanks.
> Tony
Did you log out and then back in as developer? Per:
http://www.postgresql.org/docs/9.0/interactive/sql-alterrole.html
"The remaining variants change a role's session default for a configuration
variable, either for all databases or, when the IN DATABASE clause is
specified, only for sessions in the named database. Whenever the role
subsequently starts a new session, the specified value becomes the session
default, overriding whatever setting is present in postgresql.conf or has been
received from the postgres command line."
--
Adrian Klaver
adrian.klaver@gmail.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: adrian.klaver@gmail.com, tcapobianco@prospectiv.com
Subject: Re: create role
In-Reply-To: <201012301423.10229.adrian.klaver@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox