pg_cron_helper
Extension to help functionality of pg_cron
pg_cron_helper · Extension to help functionality of pg_cron
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101528 | pg_cron_helper | pg_cron_helper | 0.3 | TIME | GPL-3.0 | SQL |
| Relationships | |
|---|---|
| Requires | dblink postgres_fdw |
Usage
Sources:
- Official upstream README
- Official extension control file (pg_cron_helper.control)
- Official extension SQL (pg_cron_helper–0.1.sql)
pg_cron_helper — The pg_cron_helper database extension is supposed to help running “jobs” on a simple time-based schedule. Of course you are far better of using an external scheduler, but if you must schedule jobs inside a Postgres database then this extension may be of some help. Use it for the corresponding scheduling, temporal, or time-series workflow. Its extension dependencies must be installed and validated first.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
get_job_state(job_name varchar(128) , user_name name default current_user)is an extension function and returnstext.list_jobs()is an extension function and returnssetof.create_jobis an extension procedure.cron.stop_jobis an extension procedure.disable_jobis an extension procedure.drop_jobis an extension procedure.enable_jobis an extension procedure.run_jobis an extension procedure.stop_jobis an extension procedure.job_recordis an extension-defined type.job_definitionis a table installed or managed by the extension.job_runis a table installed or managed by the extension.
Requirements and Caveats
- The reviewed control file declares default version
0.3. - Install the confirmed extension dependencies first:
postgres_fdw,dblink. - The control file marks the extension as non-relocatable.
- The control file requires a superuser for installation.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.