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]] (Since the concepts of “users” and “groups” have been unified into “roles”, this command is now equivalent to \dg.) )
+
List users and [[PostgreSQL: Role|Roles]]
* https://www.postgresql.org/docs/current/app-psql.html
+
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>
* <code>[[rds_superuser]], [[rds_master]], [[rdsadmin]]</code>
+
* [[RDS_SUPERUSER]], [[rds_master]], [[rdsadmin]]
* <code>[[\dt]]</code> [[list tables]]
+
* <code>[[\dt]]</code>
* <code>[[\ddp]]</code> lists default access [[privilege]] settings
+
* <code>[[\ddp]]</code> lists default access privilege settings
* <code>[[\dn]]</code>
 
 
* [[ALTER USER]] YOUR_USER WITH PASSWORD 'your_new_password';
 
* [[ALTER USER]] YOUR_USER WITH PASSWORD 'your_new_password';
* <code>SELECT pg_database_size('your_db_name');</code>
 
[[GRANT "your-defined_role" TO "your_username";]]
 
  
 
== See also ==
 
== See also ==
* {{CREATE USER}}
 
 
* {{Role}}
 
* {{Role}}
 
* {{GRANT}}
 
* {{GRANT}}

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: