Skip to main content
The SHOW USERS lists the users for all databases.
Since the keywords ROLES and USERS can now be used interchangeably in SQL statements for enhanced PostgreSQL compatibility, SHOW USERS is now an alias for .

Synopsis

show_users syntax diagram

Required privileges

The user must have the on the system.users and system.role_members tables.

Example

Alternatively, within the built-in SQL shell, you can use the \du :

See also