Skip to content

pg_cron Compatibility

In-database cron job scheduler for periodic materialized view refreshes, partition maintenance, and purges.

CREATE EXTENSION pg_cron;

Version evidence reviewed

  • On Amazon RDS, add pg_cron to shared_preload_libraries in the parameter group and check the installer role permissions. Installation docs
  • On Neon, jobs run only while the compute is active. Runtime requirements
Cloud productPG versionExtension versionCaveat and source
NeonPG 19Extension 1.6Prefer scheduled Function Triggers; pg_cron runs only while the compute is active, so it needs scale to zero disabled. Docs
NeonPG 18Extension 1.6Prefer scheduled Function Triggers; pg_cron runs only while the compute is active, so it needs scale to zero disabled. Docs
NeonPG 17Extension 1.6Prefer scheduled Function Triggers; pg_cron runs only while the compute is active, so it needs scale to zero disabled. Docs
NeonPG 16Extension 1.6Prefer scheduled Function Triggers; pg_cron runs only while the compute is active, so it needs scale to zero disabled. Docs
NeonPG 15Extension 1.6Prefer scheduled Function Triggers; pg_cron runs only while the compute is active, so it needs scale to zero disabled. Docs
NeonPG 14Extension 1.6Prefer scheduled Function Triggers; pg_cron runs only while the compute is active, so it needs scale to zero disabled. Docs
AWS RDSPG 12.5+Extension 按引擎次版本 / By engine minorConfigure shared_preload_libraries through the parameter group and check the installer role. Docs
Check support by platform
Check the version on your instance
SELECT version();
SELECT version, installed FROM pg_available_extension_versions
WHERE name = 'pg_cron';
Full extension matrix