PostgreSQL User(Role)
CREATE USER
CREATE USER <user> WITH PASSWORD '<password>'
CREATE USER
는 CREATE ROLE ... LOGIN
과 동일한 것으로 간주하면 됩니다.
CREATE ROLE
- https://www.postgresql.org/docs/current/sql-createrole.html
- https://www.postgresql.org/docs/current/role-attributes.html
CREATE ROLE <role> [WITH <option> ...]
SELECT
\du [<pattern>]
GRANT
GRANT <role>
TO <user | role>