pg_utility_trigger_functions
Some pet trigger functions that the extension author likes to follow him through various PostgreSQL projects.
pg_utility_trigger_functions · Some pet trigger functions that the extension author likes to follow him through various PostgreSQL projects.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101640 | pg_utility_trigger_functions | pg_utility_trigger_functions | 1.9.3 | UTIL | PostgreSQL | SQL |
| Relationships | |
|---|---|
| Requires | hstore |
Usage
Sources:
- Official upstream README
- Official extension control file (pg_utility_trigger_functions.control)
- Official extension SQL (pg_utility_trigger_functions–1.0.0.sql)
pg_utility_trigger_functions — The pg_utility_trigger_functions PostgreSQL extensions bundles together some pet trigger functions that the extension author—BigSmoke—likes to walk through various PostgreSQL projects. Use it for the corresponding SQL or database utility workflow. Its extension dependencies must be installed and validated first.
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
coalesce_sibling_fields()is an extension function and returnstrigger.copy_fields_from_foreign_table()is an extension function and returnstrigger.fallback_to_fields_from_foreign_table()is an extension function and returnstrigger.no_delete()is an extension function and returnstrigger.nullify_columns()is an extension function and returnstrigger.overwrite_composite_field_in_referencing_table()is an extension function and returnstrigger.overwrite_fields_in_referencing_table()is an extension function and returnstrigger.pg_utility_trigger_functions_meta_pgxn()is an extension function and returnsjsonb.pg_utility_trigger_functions_readme()is an extension function and returnstext.set_installed_extension_version_from_name()is an extension function and returnstrigger.test__mock.now()is an extension function and returnstimestamptz.update_updated_at()is an extension function and returnstrigger.test__coalesce_sibling_fieldsis an extension procedure.test__copy_fields_from_foreign_tableis an extension procedure.
Requirements and Caveats
- The reviewed control file declares default version
1.9.3. - Install the confirmed extension dependencies first:
hstore. - 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.