pg_cron
Job scheduler for PostgreSQL
pg_cron : Job scheduler for PostgreSQL
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 1070 | pg_cron | pg_cron | 1.6.8 |
TIME | PostgreSQL | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --sLd-- | No | Yes | Yes | Yes | no | no |
| Relationships | |
|---|---|
| Schemas | pg_catalog |
| Need By | documentdb pg_dispatch pgfr_record pglock pgmb timeseries vectorize |
| See Also | pgagent pg_task pg_dbms_job pg_dispatch pg_later pg_jobmon pg_durable pg_background pg_when cron_utils |
require cron.database_name
Packages
| Linux / PG | PG19 | PG18 | PG17 | PG16 | PG15 |
|---|---|---|---|---|---|
| el8.x86_64 | N/A | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 |
| el8.aarch64 | N/A | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 |
| el9.x86_64 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 |
| el9.aarch64 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 |
| el10.x86_64 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 |
| el10.aarch64 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 |
| d12.x86_64 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 |
| d12.aarch64 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 |
| d13.x86_64 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 |
| d13.aarch64 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 |
| u22.x86_64 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 |
| u22.aarch64 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 |
| u24.x86_64 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 |
| u24.aarch64 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 |
| u26.x86_64 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 |
| u26.aarch64 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 | PGDG 1.6.8 |
Source
github.com/citusdata/pg_cron
Install
Make sure PGDG repo available:
Install this extension with pig:
Config this extension to shared_preload_libraries:
Create this extension with:
Usage
beware that cron.database has to be set before adding to shared_preload_libraries
Crontab format: