Re: privileges oddity - Mailing list pgsql-general

From Scott Ribe
Subject Re: privileges oddity
Date
Msg-id B59F3687-372E-49EE-A200-938E3699A074@elevated-dev.com
Whole thread Raw
In response to Re: privileges oddity  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: privileges oddity
List pgsql-general
>
> What happens if you do?:
>
> select has_schema_privilege('akanzler', 'zoewang', 'usage');

risk_oltp_prod=# select has_schema_privilege('akanzler', 'zoewang', 'usage');
has_schema_privilege
----------------------
t
(1 row)

> In psql what does
>
> \ddp
>
> show?

risk_oltp_prod=# \ddp
                        Default access privileges
    Owner      |  Schema  | Type  |           Access privileges
----------------+----------+-------+----------------------------------------
...
srv_risk       | zoewang  | table | akanzler=r/srv_risk                   +
               |          |       | srv_risk=arwdD/srv_risk
...
(40 rows)


Wondering if there's a code path somewhere that lets the default take precedence???


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: privileges oddity
Next
From: Scott Ribe
Date:
Subject: Re: privileges oddity