Difference between revisions of "PostgreSQL superuser"
Jump to navigation
Jump to search
(Redirected page to PostgreSQL: Database roles) Tag: New redirect |
|||
(13 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;]] | ||
+ | Error: must be superuser to alter superusers | ||
+ | |||
+ | |||
+ | == Related == | ||
+ | * [[CREATE ROLE]] | ||
+ | * [[PostgreSQL: Database roles]] | ||
+ | * [[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}} | ||
+ | |||
+ | [[Category:PostgreSQL]] |
Latest revision as of 15:21, 20 September 2024
postgres
issuperuser
in PostgreSQLrds_superuser
is Superuser in AWS RDS PostgreSQL
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]
- CREATE ROLE
- PostgreSQL: Database roles
- root
DROP DATABASE
- Elasticsearch superuser
- pg_read_all_settings Read all configuration variables, even those normally visible only to superusers.
See also[edit]
Advertising: