CREATE ROLE requires the CREATE ROLE privilege. OR REPLACE throws away an existing role of the same name, along with the privileges granted to it, so it additionally requires the DROP ROLE privilege.