Re: Viewing another role's search path?

From: Ian Lawrence Barwick <barwick(at)gmail(dot)com>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: PG-General Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Viewing another role's search path?
Date: 2013-07-23 13:11:51
Message-ID: CAB8KJ=h3PoWQc0aAHv9LCLxDSH7DXoBXKsy_kHA=-VZ_6PRDcQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2013/7/23 Michael Paquier <michael(dot)paquier(at)gmail(dot)com>:
>
> On Tue, Jul 23, 2013 at 9:15 PM, Ian Lawrence Barwick <barwick(at)gmail(dot)com>
> wrote:
>>
>> Is there some simple way of viewing the search path (or other
>> role-specific setting) for a role different to the current role? Apart
>> from
>> querying 'pg_db_role_setting' directly?
>
> This one perhaps?
> select rolname, rolconfig from pg_roles;
> rolconfig contains all the user-specific settings.

Thanks, but what I'm looking for is a more elegant (built-in?) way of extracting
the contents of the configuration array which is useable for people who don't
want to poke around in the system catalogues. I've created a view
which does this,
but I want to confirm if there's anything along the lines of "SHOW
search_path FOR ROLE foo"
which I've missed and would save the trouble of maintaining the view.

Regards

Ian Barwick

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2013-07-23 13:30:30 Re: Viewing another role's search path?
Previous Message Michael Paquier 2013-07-23 13:03:26 Re: Viewing another role's search path?