pg_isok
pg_isok
pg_isok : Query-based data integrity management and soft alerting for PostgreSQL
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 4340 | pg_isok | pg_isok | 1.4.1 | UTIL | AGPL-3.0 | SQL |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
----d-- | No | No | No | Yes | no | no |
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 |
Source
pig build pkg pg_isok; # build rpm/debInstall
Make sure PGDG and PIGSTY repo available:
pig repo add pgsql -u # add both repo and update cacheInstall this extension with pig:
pig install pg_isok; # install via package name, for the active PG version
pig install pg_isok -v 18; # install for PG 18
pig install pg_isok -v 17; # install for PG 17
pig install pg_isok -v 16; # install for PG 16
pig install pg_isok -v 15; # install for PG 15
pig install pg_isok -v 14; # install for PG 14Create this extension with:
CREATE EXTENSION pg_isok;Usage
- Source: Codeberg repo, documentation home, doc source
- Isok is a query-centered monitoring extension for PostgreSQL. It reports changes to previously seen questionable data patterns, not just the existence of the rows.
CREATE SCHEMA isok;
CREATE EXTENSION pg_isok SCHEMA isok;Core Workflow
The extension centers on two tables:
ISOK_QUERIES, which stores the monitoring queriesISOK_RESULTS, which stores the discovered issues and their resolution state
Run the monitor with run_isok_queries():
SELECT * FROM run_isok_queries();
SELECT * FROM run_isok_queries($$VALUES ('new_countries')$$) AS problems;Rows in ISOK_RESULTS can be resolved or deferred so later runs no longer report them as active problems.
Notes
The documentation describes Isok as a “soft trigger” style tool for data cleanup and integrity review. It installs on PostgreSQL 10 or later and can be built as pure SQL for managed environments.
Last updated on