Overview - Login vs group roles
What is it?
In PostgreSQL, a login role is a user account that can connect to the database. A group role is a collection of roles that can own privileges and be assigned to other roles. Login roles represent individual users, while group roles help manage permissions for multiple users together.
Why it matters
Without distinguishing login and group roles, managing database access would be chaotic and error-prone. Group roles allow administrators to assign permissions once and share them among many users, saving time and reducing mistakes. Without this, each user would need individual permission setup, making security and maintenance difficult.
Where it fits
Before learning this, you should understand basic database roles and permissions. After this, you can learn about role inheritance, privilege management, and security best practices in PostgreSQL.