Re: Schemas, Roles & Search Path - Mailing list pgsql-general

From Don Parris
Subject Re: Schemas, Roles & Search Path
Date
Msg-id CAJ-7yonCJYAmVv9cpAFqLgOoaGS_pxgpJNLVjQ_W-jemjy7bqQ@mail.gmail.com
Whole thread Raw
In response to Re: Schemas, Roles & Search Path  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Sat, Jan 9, 2016 at 10:22 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Don Parris <parrisdc@gmail.com> writes:
> I *think* I want to set the search path on the group roles so that the
> Facilities team can see the COMMON and FACILITIES schemas:
> ALTER ROLE fm_users search_path=common, facilities, accounting;
>
> Or do I need to set the search path for each user individually?
> ALTER ROLE joe SET search_path=common, facilities, accounting;

The latter.  A session only absorbs ALTER ROLE SET settings for the
exact role you're logging in as.  (Otherwise there would be a need
for a conflict resolution rule, and it's pretty hard to see how that
would work in general for arbitrary settings.)  Role "inheritance"
applies to granted privileges only.

                        regards, tom lane

Thanks Tom, that helps!

Don
--
D.C. Parris, FMP, Linux+, ESL Certificate
Minister, Security/FM Coordinator, Free Software Advocate
GPG Key ID: F5E179BE

pgsql-general by date:

Previous
From: Don Parris
Date:
Subject: Re: Schemas, Roles & Search Path
Next
From: "drum.lucas@gmail.com"
Date:
Subject: Re: New Slave - timeline ERROR