pgAutomator
pgautomator_extension · Database logic for the pgAutomator job scheduling system.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100347 | pgAutomator | pgautomator_extension | 0.0.1 | TIME | MIT | SQL |
| Relationships | |
|---|---|
| Requires | plpgsql |
Usage
Sources:
pgAutomator installs the database-side catalog for an early pgAutomator job scheduler. It creates scheduling, agent, job, step, queue, connection, email, and execution-log objects in the pgautomator schema. The extension itself contains no background worker or executable agent, so installing it does not execute jobs; a matching external pgAutomator agent is required.
Because the canonical extension name contains an uppercase letter, quote it in SQL.
Object Model
pgautomator.agentandpgautomator.agent_activetrack external agents and their polling heartbeats.pgautomator.job,pgautomator.step,pgautomator.job_schedule, and the schedule subtype tables describe work, control flow, and calendar timing.pgautomator.job_execution_queuestores due executions;pgautomator.queue_job_execution()populates it from enabled jobs and schedules.pgautomator.job_logandpgautomator.step_logrecord execution state.pgautomator.job_killis a request table for an external agent to interpret.pgautomator.step_connection,pgautomator.agent_smtp,pgautomator.job_email, andpgautomator.step_emailhold connection and notification configuration.
The install script seeds job categories and materializes pgautomator.dim_date for roughly one year starting at extension creation. A long-lived installation must refresh that materialized view and validate the scheduler’s date logic before the initial range expires.
Operational Notes
- Upstream version
0.0.1dates from 2017 and has only a one-line README. There is no maintained deployment, agent-protocol, upgrade, or current PostgreSQL compatibility documentation. - The
ON_IDLEandON_TRIGGER_FILEmembers exist inpgautomator.schedule_type, but the source comment says those modes are unsupported. Use only behavior verified with the matching agent. - SMTP passwords and database passwords are stored as plain text columns in ordinary tables. Lock down the
pgautomatorschema, backups, replicas, and logs before storing credentials. - SQL and batch steps can execute powerful commands through the external agent. Treat job-definition writes as privileged administration and constrain the agent operating-system account and database roles.
- The schema is an early, tightly coupled data model with circular deferred foreign keys and generated schedule state. Test creation, queueing, retries, time zones, daylight-saving transitions, failure recovery, and agent compatibility before any production use.