pmnzt@custom_roles_patch
custom_roles.
pmnzt@custom_roles_patch · custom_roles.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101724 | pmnzt@custom_roles_patch | pmnzt@custom_roles_patch | 0.0.1 | SEC | Unknown | SQL |
Usage
Sources:
pmnzt@custom_roles_patch — custom_roles. Use it when implementing the corresponding security, audit, or access-control workflow. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
custom_roles_update_to_app_metadata()is an extension function and returnstrigger.get_user_roles()is an extension function and returnstext[].user_has_role(_role text)is an extension function and returnsboolean.user_role_in(_roles text[])is an extension function and returnsboolean.user_roles_match(_roles text[])is an extension function and returnsboolean.custom_role_namesis a table installed or managed by the extension.custom_user_rolesis a table installed or managed by the extension.on_custom_role_changeis an extension-defined trigger.
Requirements and Caveats
- The catalog records version
0.0.1. - This is a database.dev/pg_tle package; register or generate its package migration before issuing the quoted
CREATE EXTENSIONidentity. - Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.