check number of database users in postgres code example Example: postgresql list users postgres=# \du