pg_jobmon
pg_jobmon : Extension for logging and monitoring functions in PostgreSQL
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 7160 | pg_jobmon | pg_jobmon | 1.4.1 |
SEC | PostgreSQL | SQL |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-- | No | Yes | No | Yes | no | no |
| Relationships | |
|---|---|
| Requires | dblink |
| See Also | pg_cron pgagent pg_dispatch pg_task pg_dbms_job pg_later |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | MIXED | 1.4.1 |
18 17 16 15 14 | pg_jobmon |
dblink |
| RPM | PGDG | 1.4.1 |
18 17 16 15 14 | pg_jobmon_$v |
- |
| DEB | PIGSTY | 1.4.1 |
18 17 16 15 14 | postgresql-$v-pg-jobmon |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 |
| el8.aarch64 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 |
| el9.x86_64 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 |
| el9.aarch64 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 |
| el10.x86_64 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 |
| el10.aarch64 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 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
github.com/omniti-labs/pg_jobmon
pg_jobmon-1.4.1.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
pg_jobmon: Autonomous job logging and monitoring for PostgreSQL
pg_jobmon provides autonomous (non-transactional) logging for PostgreSQL transactions and functions. If a function fails, all log information written up to that point is preserved rather than rolled back.
Setup
The extension uses dblink to connect back to the same database (for non-transactional logging). Add credentials:
For non-standard ports:
Core Logging Functions
Monitoring Functions
The autonomous logging ensures that even if the parent transaction rolls back, the job log entries are preserved for troubleshooting.