Re: Alter default privileges is not working for roles

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Alter default privileges is not working for roles
Дата
Msg-id 285758.1677099811@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Alter default privileges is not working for roles  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-admin
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Wed, Feb 22, 2023 at 10:53 AM Teju Jakkidi vlogs <
> teja.jakkidi05@gmail.com> wrote:
>> alter default privileges for role ownerrole
>> Now our expectation is that if there is any table created by any user

> The specification of "ownerrole" in that command means that said default
> privileges only are created if "ownerrole" is the one creating the objects
> - not "created by any user".

It's hard to say for sure when we've been shown no details, but
I suspect what the OP is describing is event triggers that issue
ALTER OWNER commands after the fact.  The default privileges
mechanism is only applied at the instant of object creation;
we do not want ALTER OWNER or SET SCHEMA or similar commands
having random side-effects on existing privileges.

            regards, tom lane



В списке pgsql-admin по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Alter default privileges is not working for roles
Следующее
От: info@denisgottardello.it
Дата:
Сообщение: PostgreSQL, change encoding preserving data