Postgres: Revoke create parition
revoke create on schema cpnadmin from cpnadmin;
In PostgreSQL, there is no specific privilege called CREATE PARTITION that you can directly GRANT or REVOKE on a table.
Partition creation is not a standalone privilege — it is tied to table ownership.
Only:
- The table owner (or a role that is a member of the owning role)
- A superuser
can create partitions for a partitioned table.
This means:
- If a role can create partitions, it’s because it owns the table (or is a member of the owner role).
- To remove that ability, you must change the table’s ownership or remove the role from the owner group — not by
REVOKE.
Comments
Post a Comment