Re: List user who have access to schema

From: Suresh Raja <suresh(dot)rajaabc(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: List user who have access to schema
Date: 2018-08-02 18:23:48
Message-ID: CAJP7dtD_CdD_fK8dbFhy_oc7D=9JwxUz+EUQrxgibCyO416y3g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

yes ... how can i pass variable * to the function has_schema_privilege(*,
'schema-of-interest', 'usage');

Thanks!

On Thu, Aug 2, 2018 at 12:58 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Suresh Raja <suresh(dot)rajaabc(at)gmail(dot)com> writes:
> > I'm looking for query which can list all users who have access to a
> > particular schema.
>
> Something involving
>
> SELECT ... FROM pg_user
> WHERE has_schema_privilege(usename, 'schema-of-interest', 'usage');
>
> would probably be what you want.
>
> regards, tom lane
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2018-08-02 18:42:12 Re: List user who have access to schema
Previous Message Tom Lane 2018-08-02 17:58:37 Re: List user who have access to schema

Browse pgsql-sql by date

  From Date Subject
Next Message David G. Johnston 2018-08-02 18:42:12 Re: List user who have access to schema
Previous Message Tom Lane 2018-08-02 17:58:37 Re: List user who have access to schema