Skip to main content

PostgreSQL User(Role)


CREATE USER

CREATE USER <user> WITH PASSWORD '<password>'

CREATE USERCREATE ROLE ... LOGIN과 동일한 것으로 간주하면 됩니다.

CREATE ROLE

CREATE ROLE <role> [WITH <option> ...]

SELECT

\du [<pattern>]

GRANT

GRANT <role>
TO <user | role>