The pg_cron extension allows you to run periodic tasks in your database whenever the server is running!
Use cases could be automatically generating reports, cleaning up old data, or even periodically downloading new data using the http extension.
We are offering pg_cron as an additional download for Postgres.app.
postgresql.conf file for your server
shared_preload_libraries = 'pg_cron'cron.timezone = 'Europe/Vienna'cron.use_background_workers = on (you can make it work without this setting, but you might run into issues with trust authentication)postgres database eg using psql -U postgres postgresCREATE EXTENSION pg_cron;Done! You can now schedule tasks with cron.schedule()
You can find the full setup instructions for pg_cron here: github.com/citusdata/pg_cron#setting-up-pg_cron