From: | Ron Johnson <ronljohnsonjr(at)gmail(dot)com> |
---|---|
To: | Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: ERROR: must be owner of table - ALTER TABLE |
Date: | 2024-05-18 10:45:25 |
Message-ID: | CANzqJaCa_mxU_rKTWFQ9uvcRQuG83R4qmKWoCAN6cPQh5AkeAg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Sat, May 18, 2024 at 6:17 AM Edwin UY <edwin(dot)uy(at)gmail(dot)com> wrote:
> Hi
>
> Is there no other option to grant a user ALTER TABLE privilege except
> doing the grant <owner> to <user>/<role> :-)
>
> I can understand it is not really ideal to grant access for the user to do
> ALTER TABLE, this is mainly for the TEST environment while the developers
> are doing their testing.
> For Qual and PROD, it will be restricted to either the owner or users with
> superuser privileges.
>
> Any advice is much appreciated. Thanks in advance.
>
https://www.postgresql.org/docs/14/sql-grant.html
"The right to drop an object, or to alter its definition in any way, is not
treated as a grantable privilege; it is inherent in the owner, and cannot
be granted or revoked. (However, a similar effect can be obtained by
granting or revoking membership in the role that owns the object; see
below.) The owner implicitly has all grant options for the object, too."
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2024-05-18 14:47:16 | Re: ERROR: must be owner of table - ALTER TABLE |
Previous Message | Edwin UY | 2024-05-18 10:17:20 | ERROR: must be owner of table - ALTER TABLE |