pg_cron is a PostgreSQL extension that lets you run scheduled jobs (like Linux cron) directly inside PostgreSQL.
1.RHEL / CentOS / Rocky Linux install
sudo yum install pg_cron_15
2. Enable pg_cron in PostgreSQL
/var/lib/pgsql/15/data/postgresql.conf
Add:
shared_preload_librar...