Re: Role inheritance and Conflicting Parameter Values

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "McGehee, Robert" <Robert(dot)McGehee(at)geodecapital(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Role inheritance and Conflicting Parameter Values
Date: 2014-06-23 23:24:06
Message-ID: 17742.1403565846@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"McGehee, Robert" <Robert(dot)McGehee(at)geodecapital(dot)com> writes:
> I'm trying to set the default statement_timeout parameter for two different groups of users. However, as many of the users inherit from overlapping roles, I wanted to get clarification on how inheritance of parameter values worked when a role inherits from other roles that all have different settings for a parameter value.

I'm pretty sure there is no inheritance for ALTER ROLE SET parameters.
Role inheritance only applies to grantable permissions.

> Also, as a superuser, can I examine the parameter values for another
> user to make sure I set this correctly.

You can certainly look at the pg_db_role_setting catalog to find this out.
I don't remember offhand if there are any system views that present the
information in a more friendly fashion.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message AI Rumman 2014-06-24 00:18:36 skipping analyze of "table1" --- lock not available?
Previous Message Greg Stark 2014-06-23 23:04:50 Re: Extended Prefetching using Asynchronous IO - proposal and patch