Difference between revisions of "Show users;"

From wikieduonline
Jump to navigation Jump to search
m (Welcome moved page Show users to Show users;)
 
Line 24: Line 24:
 
== See also ==
 
== See also ==
 
* {{psql}}
 
* {{psql}}
* {{PostgreSQL}}
+
* {{PostgreSQL users}}
  
  
 
[[Category:Databases]]
 
[[Category:Databases]]

Latest revision as of 15:06, 20 September 2024

show users


postgres=# \du
                                      List of roles
   Role name    |                         Attributes                         | Member of
----------------+------------------------------------------------------------+-----------
 YOUR_USER      | Create DB                                                  | {}
 postgres       | Superuser, Create role, Create DB, Replication, Bypass RLS | {}


  • create role USERNAME with login password 'PASSWORD';
  • create database DATABASE_NAME owner USERNAME;

Related terms[edit]

See also[edit]

Advertising: