我试图在
postgresql数据库表中复制(一个最小的)crontab功能,具有类似crontab的语义,如下所示(索引未显示,为simiplicity):
create table schedule ( id int not null primary key,command text ); create table schedule_detail( schedule_id int not null references schedule(id),sd_minute smallint not null,sd_hour smallint not null,sd_day smallint not null,sd_month smallint not null,sd_year smallint not null,sd_dayofweek smallint not null );
我只有架构设计.我想了解如何实现这一点.特别是,如何实现:
>计划表的“定期轮询”
>如何确定要运行的计划
pgAgent将完成这项工作.完整的设置可以在
Postgresonline.com找到.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。