Closed jjkoehorst closed 1 month ago
pg_Cron indeed is not standard in this image.. but....
The Timecale Addon does come with pg_Agent preinstalled.
Together with the pgAdmin addon (or just pgAdmin installed on your workstation) you can create and schedule autonomous jobs like backups or any other scripts or even binaries.
See also it's documentation: https://www.pgadmin.org/docs/pgadmin4/development/pgagent_jobs.html
Once the jobs are setup using pgAdmin, they will just run independently:
You can add the pgAgent extension to the standard postgres database. The extension is already available:
Does this suit your needs?
If not, I could help you with getting pg_cron running.
Thanks a lot should be able to sort it out when I am at home.
First of all the image works great and I can finally start working on improving my SQL / timescale skills.
For reasons (e.g. remove sun.sun information older than 1 day) I was thinking of developing a cron job that runs every day / week or month and then removes the data older than 1 day related to certain entities. I would like to record it but it does not need to remain there forever (at the moment).
So one of the options is to use as far as I can tell is
pg_cron
however this is not available in pgadmin.I added the module but not sure if something needs to be added to the image