Proposal: Job Scheduler
От | Wang Cheng |
---|---|
Тема | Proposal: Job Scheduler |
Дата | |
Msg-id | tencent_C2E1296B66E5225EA7158B2F0E396401CB09@qq.com обсуждение исходный текст |
Ответы |
Re: Proposal: Job Scheduler
|
Список | pgsql-hackers |
Hackers,
We are the PostgreSQL team in Tencent. We have recently developed a job scheduler that runs inside the database to schedules and manages jobs similar to Oracle DBMS_JOB package, and we would like to contribute this feature to the community.
Similar to autovacuum, the job scheduler consists of 2 parts: the job launcher and the job worker. The job launcher periodically scans a metadata table and signals the postmaster to start new workers if needed.
As far as we know, there are currently two open-sourced job scheduling extensions for PostgreSQL: pg_cron (https://github.com/citusdata/pg_cron/) and pg_dbms_job (https://github.com/MigOpsRepos/pg_dbms_job/tree/main). However, the cron-based syntax is not easy to use and suffers some limitations like one-off commands. The pg_dbms_job extension is difficult to manage and operate because it runs as a standalone process .
That's why we have developed the job scheduler that runs as a process inside the database just like autovacuum.
We can start to send the patch if this idea makes sense to the you. Thanks for your time.
Regards,
Cheng
В списке pgsql-hackers по дате отправления: