psql Cheat Sheet/List access privileges

Show grants and ownership for a relation.

Section: Meta-commands and Catalog Navigation

List access privileges

sql
sql
\z public.users
Explanation

See summary for usage details.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Meta-commands and Catalog Navigation
List tables
List tables in visible schemas.
OpenIn sheetsqlsame section
List views
List views in visible schemas.
OpenIn sheetsqlsame section
List functions
List functions in the current database.
OpenIn sheetsqlsame section
List sequences
List sequences.
OpenIn sheetsqlsame section
Describe function
Show function details including source and volatility.
OpenIn sheetsqlsame section
List types
List data types defined in the database.
OpenIn sheetsqlsame section