I added pg_cron extension to my database (postgresql 9.6) to schedule a job. I created a job to be executed every day at 3:30 am:
SELECT cron.schedule('30 3 * * *', $$create table tbl_new as select * from temp$$);
I can see that this job stored in the database:
mydb=# select * from cron.job;
jobid | schedule | command | nodename | nodeport | database | username
-------+------------+--------------------------------------------------------+-----------+----------+----------------+----------
7 | 5 17 * * * | create table tbl_new as select * from temp | localhost | 5432 | mydb | postgres
(1 row)
The problem is that the job is never executed and I there is no error in the error log.
Please advice how to fix this problem.