pg_isok
Overview
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 4340 | pg_isok | No | No | No | Yes | No | No | - |
superuser=false, but this is not a trusted extension.
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.4.1 | 1817161514 | pg_isok | - |
| RPM | PIGSTY | 1.4.1 | 1817161514 | pg_isok_$v | - |
| DEB | PIGSTY | 1.4.1 | 1817161514 | postgresql-$v-pg-isok | - |
Build
You can build the RPM / DEB packages for pg_isok using pig build:
Install
You can install pg_isok directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Create Extension:
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.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)