Re: List user who have access to schema - Mailing list pgsql-general

From Tom Lane
Subject Re: List user who have access to schema
Date
Msg-id 30052.1533232717@sss.pgh.pa.us
Whole thread Raw
In response to List user who have access to schema  (Suresh Raja <suresh.rajaabc@gmail.com>)
Responses Re: List user who have access to schema
Re: List user who have access to schema
List pgsql-general
Suresh Raja <suresh.rajaabc@gmail.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


pgsql-general by date:

Previous
From: Suresh Raja
Date:
Subject: List user who have access to schema
Next
From: Suresh Raja
Date:
Subject: Re: List user who have access to schema