Difference between revisions of "PostgreSQL superuser"

From wikieduonline
Jump to navigation Jump to search
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
 +
* <code>postgres</code> is <code>superuser</code> in [[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;]]
 +
Error: must be superuser to alter superusers
  
  
 
== Related ==
 
== Related ==
 +
* [[CREATE ROLE]]
 
* [[PostgreSQL: Database roles]]
 
* [[PostgreSQL: Database roles]]
 
* [[root]]
 
* [[root]]
 +
* <code>[[DROP DATABASE]]</code>
 +
* [[Elasticsearch superuser]]
 +
* [[pg_read_all_settings]] Read all configuration variables, even those normally visible only to superusers.
  
 +
== See also ==
 +
* {{role}}
 +
* {{PosgreSQL users}}
  
* {{roles}}
+
[[Category:PostgreSQL]]

Latest revision as of 15:21, 20 September 2024

Examples[edit]

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[edit]

See also[edit]

Advertising: