Re: Why does the owner of a publication need CREATE privileges on the database?

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема Re: Why does the owner of a publication need CREATE privileges on the database?
Дата
Msg-id CAA4eK1L036o=ddArFrPNv0W20XM1hxRK1vynW=c_S0S9p7_ezw@mail.gmail.com
обсуждение исходный текст
Ответ на Why does the owner of a publication need CREATE privileges on the database?  (Mark Dilger <mark.dilger@enterprisedb.com>)
Ответы Re: Why does the owner of a publication need CREATE privileges on the database?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Tue, Jul 27, 2021 at 11:29 PM Mark Dilger
<mark.dilger@enterprisedb.com> wrote:
>
> The documentation for ALTER PUBLICATION ... OWNER TO ... claims the new owner must have CREATE privilege on the
database,though superuser can change the ownership in spite of this restriction.  No explanation is given for this
requirement.
>

I am not aware of the original thought process behind this but current
behavior seems reasonable because if users need to have CREATE
privilege on the database while Create Publication, the same should be
true while we change the owner to a new owner. Basically, at any point
in time, the owner of the publication should have CREATE privilege on
the database which contains the publication.

-- 
With Regards,
Amit Kapila.



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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Added schema level support for publication.
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: ECPG bug fix: DECALRE STATEMENT and DEALLOCATE, DESCRIBE