pg_validator
PostgreSQL extension to validate data with trigger
pg_validator · PostgreSQL extension to validate data with trigger
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101643 | pg_validator | pg_validator | 1.0 | FEAT | Unknown | PLpgSQL |
Usage
Sources:
- Official upstream README
- Official extension control file (pg_validator.control)
- Official extension SQL (pg_validator–1.0.sql)
pg_validator — PostgreSQL extension to validate data with trigger. Use it when an application needs this specific database capability. 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
alpha_rule("value" ANYELEMENT)is an extension function and returnsBOOLEAN.array_is_unique("arr" ANYARRAY)is an extension function and returnsBOOLEAN.array_overlap_count("a" ANYARRAY, "b" ANYARRAY)is an extension function and returnsINT.array_unique("arr" ANYARRAY)is an extension function and returnsANYARRAY.constraint_def_contained("a" CONSTRAINT_DEF, "b" CONSTRAINT_DEF)is an extension function and returnsBOOLEAN.constraint_def_contains("a" CONSTRAINT_DEF, "b" CONSTRAINT_DEF)is an extension function and returnsBOOLEAN.constraint_def_eq("a" CONSTRAINT_DEF, "b" CONSTRAINT_DEF)is an extension function and returnsBOOLEAN.constraint_def_neq("a" CONSTRAINT_DEF, "b" CONSTRAINT_DEF)is an extension function and returnsBOOLEAN.email_rule("value" ANYELEMENT)is an extension function and returnsBOOLEAN.exists_rule("relid" REGCLASS, "table_columns" TEXT[], "record" JSONB, "record_columns" TEXT[], "mode" FK_MODE = 'full', "where" TEXT = 'TRUE')is an extension function and returnsBOOLEAN.is_distinct_from("a" ANYELEMENT, "b" ANYELEMENT)is an extension function and returnsBOOLEAN.is_not_distinct_from("a" ANYELEMENT, "b" ANYELEMENT)is an extension function and returnsBOOLEAN.jsonb_array_append("json" JSONB, "path" TEXT[], "value" JSONB)is an extension function and returnsJSONB.jsonb_except("a" JSONB, "b" JSONB)is an extension function and returnsJSONB.
Requirements and Caveats
- The reviewed control file declares default version
1.0. - The control file marks the extension as non-relocatable.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.