pg_role_fkey_trigger_functions
pg_role_fkey_trigger_functions · A bunch of trigger functions to help establish and/or maintain referential integrity for columns that reference PostgreSQL ROLE NAMEs.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101607 | pg_role_fkey_trigger_functions | pg_role_fkey_trigger_functions | 1.0.4 | SEC | PostgreSQL | SQL |
Usage
Sources:
- Official upstream README
- Official extension control file (pg_role_fkey_trigger_functions.control)
- Official extension SQL (pg_role_fkey_trigger_functions–0.11.7.sql)
pg_role_fkey_trigger_functions — The pg_role_fkey_trigger_functions PostgreSQL extension offers a bunch of trigger functions to help establish and/or maintain referential integrity for columns that reference PostgreSQL ROLE NAMEs. 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
enforce_fkey_to_db_role()is an extension function and returnstrigger.grant_role_in_column1_to_role_in_column2()is an extension function and returnstrigger.maintain_referenced_role()is an extension function and returnstrigger.pg_role_fkey_trigger_functions_meta_pgxn()is an extension function and returnsjsonb.pg_role_fkey_trigger_functions_readme()is an extension function and returnstext.revoke_role_in_column1_from_role_in_column2()is an extension function and returnstrigger.test__pg_role_fkey_trigger_functionsis an extension procedure.test_dump_restore__maintain_referenced_roleis an extension procedure.test__customeris a table installed or managed by the extension.test__tblis a table installed or managed by the extension.
Requirements and Caveats
- The reviewed control file declares default version
1.0.4. - The control file marks the extension as relocatable.
- The control file does not require superuser-only installation.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.