Menu
Amazon Redshift
Database Developer Guide (API Version 2012-12-01)

Superusers

Database superusers have the same privileges as database owners for all databases.

The masteruser, which is the user you created when you launched the cluster, is a superuser.

You must be a superuser to create a superuser.

Amazon Redshift system tables and system views are either visible only to superusers or visible to all users. Only superusers can query system tables and system views that are designated "visible to superusers." For information, see System Tables and Views.

Superusers can view all PostgreSQL catalog tables. For information, see System Catalog Tables.

A database superuser bypasses all permission checks. Be very careful when using a superuser role. We recommend that you do most of your work as a role that is not a superuser. Superusers retain all privileges regardless of GRANT and REVOKE commands.

To create a new database superuser, log on to the database as a superuser and issue a CREATE USER command or an ALTER USER command with the CREATEUSER privilege.

Copy
create user adminuser createuser password '1234Admin'; alter user adminuser createuser;