auto_job
A PostgreSQL extension for background job scheduling
auto_job · A PostgreSQL extension for background job scheduling
Overview
| Relationships | |
|---|---|
| Requires | dblink |
Usage
Sources:
- Official upstream README
- Official extension control file (auto_job.control)
- Official extension SQL (auto_job–1.0.0.sql)
auto_job — Auto job extension is the postgreSQL extension that schedules and runs stored procedures automatically using background workers. 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
add_job(proc_name TEXT, schedule_interval INTERVAL)is an extension function and returnsINTEGER.delete_job(job_id INTEGER)is an extension function and returnsVOID.run_job(job_id INTEGER)is an extension function and returnsVOID._auto_job_catalog.job_infois an extension-defined view._auto_job_catalog.jobsis a table installed or managed by the extension.public.auto_job_registryis a table installed or managed by the extension.
Requirements and Caveats
- The reviewed control file declares default version
1.0.0. - Install the confirmed extension dependencies first:
dblink. - Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.