Editing List users and roles: \du
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | List users and [[PostgreSQL: Role|Roles]] | + | List users and [[PostgreSQL: Role|Roles]] |
− | + | https://www.postgresql.org/docs/current/app-psql.html | |
Lists database roles. (Since the concepts of “users” and “groups” have been unified into “[[roles]]”, this command is now equivalent to <code>[[\dg]]</code>.) By default, only user-created roles are shown; supply the S modifier to include system roles. If pattern is specified, only those roles whose names match the pattern are listed. If the form <code>\du+</code> is used, additional information is shown about each role; currently this adds the comment for each role. | Lists database roles. (Since the concepts of “users” and “groups” have been unified into “[[roles]]”, this command is now equivalent to <code>[[\dg]]</code>.) By default, only user-created roles are shown; supply the S modifier to include system roles. If pattern is specified, only those roles whose names match the pattern are listed. If the form <code>\du+</code> is used, additional information is shown about each role; currently this adds the comment for each role. | ||
Line 38: | Line 38: | ||
* <code>[[.psqlrc]]</code> | * <code>[[.psqlrc]]</code> | ||
* <code>[[show users]]</code> | * <code>[[show users]]</code> | ||
− | * | + | * [[RDS_SUPERUSER]], [[rds_master]], [[rdsadmin]] |
− | * <code>[[\dt]]</code> | + | * <code>[[\dt]]</code> |
− | * <code>[[\ddp]]</code> lists default access | + | * <code>[[\ddp]]</code> lists default access privilege settings |
− | |||
* [[ALTER USER]] YOUR_USER WITH PASSWORD 'your_new_password'; | * [[ALTER USER]] YOUR_USER WITH PASSWORD 'your_new_password'; | ||
− | |||
− | |||
== See also == | == See also == | ||
− | |||
* {{Role}} | * {{Role}} | ||
* {{GRANT}} | * {{GRANT}} |
Advertising: