psql Meta-Commands

backslash로 시작하는 명령어들을 meta-command라고 한다.

drgs+ 명령어

Lists information about each granted role membership, including assigned options (ADMIN, INHERIT and/or SET) and grantor. See the GRANT command for information about role memberships. By default, only grants to user-created roles are shown; supply the S modifier to include system roles. If pattern is specified, only grants to those roles whose names match the pattern are listed.

\drgS 

유저와 role 정보를 출력해준다.

sql command

일반적으로 사용하는 sql 명령어들