Re: Why does the owner of a publication need CREATE privileges on the database? - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: Why does the owner of a publication need CREATE privileges on the database?
Date
Msg-id CAA4eK1L036o=ddArFrPNv0W20XM1hxRK1vynW=c_S0S9p7_ezw@mail.gmail.com
Whole thread Raw
In response to Why does the owner of a publication need CREATE privileges on the database?  (Mark Dilger <mark.dilger@enterprisedb.com>)
Responses Re: Why does the owner of a publication need CREATE privileges on the database?
List 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 by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Added schema level support for publication.
Next
From: Michael Paquier
Date:
Subject: Re: ECPG bug fix: DECALRE STATEMENT and DEALLOCATE, DESCRIBE