pg_isok
Query-based data integrity management and soft alerting for PostgreSQL
pg_isok : Query-based data integrity management and soft alerting for PostgreSQL
Overview
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| ----d-- | No | No | No | Yes | no | no |
| Relationships | |
|---|---|
| See Also | amcheck pg_checksums pg_catcheck pg_orphaned pg_pathcheck pg_surgery pageinspect |
superuser=false, but this is not a trusted extension.
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.4.1 |
18 17 16 15 14 | pg_isok |
- |
| RPM | PIGSTY | 1.4.1 |
18 17 16 15 14 | pg_isok_$v |
- |
| DEB | PIGSTY | 1.4.1 |
18 17 16 15 14 | postgresql-$v-pg-isok |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| el8.aarch64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| el9.x86_64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| el9.aarch64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| el10.x86_64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| el10.aarch64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| d12.x86_64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| d12.aarch64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| d13.x86_64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| d13.aarch64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| u22.x86_64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| u22.aarch64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| u24.x86_64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| u24.aarch64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| u26.x86_64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| u26.aarch64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
Source
codeberg.org/kop/pg_isok
pg_isok-1.4.1.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
Sources: official repo, official docs home, official reference source
pg_isok is a query-based data integrity and monitoring extension. Instead of only reporting rows that currently look questionable, it stores prior results and focuses later runs on unresolved or undeferred changes.
Core Objects
ISOK_QUERIESstores the monitoring queries and their execution settings.ISOK_RESULTSstores the reported rows, including whether they were resolved or deferred.run_isok_queries()runs every active check.run_isok_queries($$VALUES ('check_name')$$)runs only selected checks.
Typical Workflow
Run one named check:
Accept or postpone a known warning by updating ISOK_RESULTS:
Use resolved when the condition is no longer a concern, or deferred_to when it should stay hidden until a later date.
Where It Fits
- data cleanup after imports
- monitoring unusual but sometimes acceptable patterns
- “soft trigger” style review workflows where hard constraints are too strict
Caveats
- Upstream recommends installing it in a dedicated schema and qualifying calls accordingly.
- The docs describe it as pure SQL, which is useful on managed PostgreSQL services where C extensions may be restricted.
- The package metadata in this repo says
superuser=false, but this is not documented upstream as a trusted extension; treat installation privileges conservatively.