Обсуждение: Seeing privileges on a schema

Поиск
Список
Период
Сортировка

Seeing privileges on a schema

От
John Scalia
Дата:
In psql, I know that \dp or \dpp will show me which privileges are granted on tables, views, sequences, and functions,
whatit doesn’t appear to be able to do, is show me what privileges are in the schema itself, like if I grant usage on a
schema.Then a \dpp doesn’t produce anything. Is there an easy way to see what privileges are on a schema? 
—
Jay

Sent from my iPad


Re: Seeing privileges on a schema

От
Tom Lane
Дата:
John Scalia <jayknowsunix@gmail.com> writes:
> In psql, I know that \dp or \dpp will show me which privileges are granted on tables, views, sequences, and
functions,what it doesn’t appear to be able to do, is show me what privileges are in the schema itself, like if I grant
usageon a schema. Then a \dpp doesn’t produce anything. Is there an easy way to see what privileges are on a schema? 

\dn+ includes that.

            regards, tom lane



Re: Seeing privileges on a schema

От
John Scalia
Дата:
Thanks, I didn’t realize that.

Sent from my iPad

> On Dec 2, 2020, at 2:00 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> John Scalia <jayknowsunix@gmail.com> writes:
>> In psql, I know that \dp or \dpp will show me which privileges are granted on tables, views, sequences, and
functions,what it doesn’t appear to be able to do, is show me what privileges are in the schema itself, like if I grant
usageon a schema. Then a \dpp doesn’t produce anything. Is there an easy way to see what privileges are on a schema? 
>
> \dn+ includes that.
>
>            regards, tom lane