pg_cron Guide: Scheduled Jobs, Monitoring & Gotchas
pg_cron: Scheduling Maintenance Inside PostgreSQL Without Losing the Plot The 2 a.m. DELETE that lives on a laptop Every database I inherit has maintenance SQL scattered in at least three places. There is a crontab -l on the primary that nobody has read since the last host migration. There is a Jenkins job called db-cleanup-nightly …