show users;

From wikieduonline
Revision as of 15:06, 20 September 2024 by Welcome (talk | contribs) (→‎See also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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: