catalog
pg_roles
Public-facing role view hides password values; role attributes are cluster-wide.
Formal Syntax & Structure
sql syntaxsql
SELECT rolname, rolcanlogin FROM pg_catalog.pg_roles WHERE rolname = 'bm_lab_reader';Working Example
Example Snippetsql
-- Disposable PostgreSQL lab only; see LAB.md.SELECT rolname, rolcanlogin FROM pg_catalog.pg_roles WHERE rolname = 'bm_lab_reader';