← All notes

PostgreSQL roles and GRANT

Short answer

PostgreSQL has only roles: a role can act as a user, a group, or both. Give privileges with GRANT, such as GRANT SELECT ON orders TO reporting;. [S1][S2]

Tips

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted).

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: PostgreSQL Global Development Group, PostgreSQL: Documentation: 18: Chapter 21. Database Roles, PostgreSQL License; PostgreSQL Global Development Group, PostgreSQL: Documentation: 18: GRANT, PostgreSQL License.

Cite this

Permanent ID: iil:note:1f9xbt9x

iinventedlight. 2026. "PostgreSQL roles and GRANT." iinventedlight Library, iil:note:1f9xbt9x, version of 2026-11-04. https://iinventedlight.com/library/notes/postgres-roles-grant/. License: CC-BY-4.0.

@misc{iil_note_1f9xbt9x,
  author = {{iinventedlight}},
  title = {{PostgreSQL roles and GRANT}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-04},
  url = {https://iinventedlight.com/library/notes/postgres-roles-grant/},
  note = {Permanent ID iil:note:1f9xbt9x. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/postgres-roles-grant.md.