pg_isok
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_isok | 1.4.1 | UTIL | AGPL-3.0 | SQL |
| 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:
pig build pkg pg_isok # build RPM / DEB packages
Install
You can install pg_isok directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
pig repo add pgsql -u # Add repo and update cache
Install the extension using pig or apt/yum/dnf:
pig install pg_isok; # Install for current active PG version
pig ext install -y pg_isok -v 18 # PG 18
pig ext install -y pg_isok -v 17 # PG 17
pig ext install -y pg_isok -v 16 # PG 16
pig ext install -y pg_isok -v 15 # PG 15
pig ext install -y pg_isok -v 14 # PG 14
dnf install -y pg_isok_18 # PG 18
dnf install -y pg_isok_17 # PG 17
dnf install -y pg_isok_16 # PG 16
dnf install -y pg_isok_15 # PG 15
dnf install -y pg_isok_14 # PG 14
apt install -y postgresql-18-pg-isok # PG 18
apt install -y postgresql-17-pg-isok # PG 17
apt install -y postgresql-16-pg-isok # PG 16
apt install -y postgresql-15-pg-isok # PG 15
apt install -y postgresql-14-pg-isok # PG 14
Create Extension:
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.
Feedback
Was this page helpful?
Thanks for the feedback! Please let us know how we can improve.
Sorry to hear that. Please let us know how we can improve.