pg_isok

pg_isok

pg_isok : Query-based data integrity management and soft alerting for PostgreSQL

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
4340
pg_isok
pg_isok
1.4.1
UTIL
AGPL-3.0
SQL
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
----d--
No
No
No
Yes
no
no

superuser=false, but this is not a trusted extension.

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
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 / PGPG18PG17PG16PG15PG14
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/deb

Install

Make sure PGDG and PIGSTY repo available:

pig repo add pgsql -u   # add both repo and update cache

Install 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 14

Create 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 queries
  • ISOK_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