Skip to content

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

IDExtensionPackageVersionCategoryLicenseLanguage
101640pg_utility_trigger_functionspg_utility_trigger_functions1.9.3UTILPostgreSQLSQL
Relationships
Requireshstore

Usage

Sources:

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

CREATE EXTENSION pg_utility_trigger_functions;

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 returns trigger.
  • copy_fields_from_foreign_table() is an extension function and returns trigger.
  • fallback_to_fields_from_foreign_table() is an extension function and returns trigger.
  • no_delete() is an extension function and returns trigger.
  • nullify_columns() is an extension function and returns trigger.
  • overwrite_composite_field_in_referencing_table() is an extension function and returns trigger.
  • overwrite_fields_in_referencing_table() is an extension function and returns trigger.
  • pg_utility_trigger_functions_meta_pgxn() is an extension function and returns jsonb.
  • pg_utility_trigger_functions_readme() is an extension function and returns text.
  • set_installed_extension_version_from_name() is an extension function and returns trigger.
  • test__mock.now() is an extension function and returns timestamptz.
  • update_updated_at() is an extension function and returns trigger.
  • test__coalesce_sibling_fields is an extension procedure.
  • test__copy_fields_from_foreign_table is 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.

Table reader