Difference between revisions of "PostgreSQL superuser"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
 
* <code>postgres</code> is <code>superuser</code> in [[PostgreSQL]]
 
* <code>postgres</code> is <code>superuser</code> in [[PostgreSQL]]
 
* <code>[[rds_superuser]]</code> is Superuser in [[AWS RDS PostgreSQL]]
 
* <code>[[rds_superuser]]</code> is Superuser in [[AWS RDS PostgreSQL]]
 +
 +
== Examples ==
 +
To grant <code>rds_superuser</code> to a user user:
 +
[[GRANT]] rds_superuser TO "[[your_username]]";
 +
 +
Output:
 +
GRANT ROLE
 +
 +
  
 
  [[ALTER USER myuser WITH SUPERUSER;]]
 
  [[ALTER USER myuser WITH SUPERUSER;]]

Revision as of 14:48, 18 November 2022

Examples

To grant rds_superuser to a user user:

GRANT rds_superuser TO "your_username";

Output:
GRANT ROLE 


ALTER USER myuser WITH SUPERUSER;
Error: must be superuser to alter superusers


Related

See also

Advertising: