Chapter 2. Roles, Configurations, Settings
This is the first chapter in the book where we cover topics of interest to the database administrator (often abbreviated as DBA). Specifically, we’ll discuss roles, configuration files, and system settings.
Roles
PostgreSQL handles credentialing using roles. Roles can also be members of other roles; roles can inherit from other role(s). (Roles that can have other roles as members used to be called groups. Because, group roles can be members of other roles and so on, the term group roles could be misleading.) A role can have a role attribute of SUPERUSER. These roles have unfettered access to the PostgreSQL cluster and should be assigned with discretion. A role can also have an attribute of LOGIN. Roles with LOGIN attribute can log into the server and are the only roles that can log into a server.
Warning
Recent versions of PostgreSQL do not use the terms users and groups formally. You will still run into these terms; just know that they mean login ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access