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 product | PG version | Extension version | Caveat and source |
|---|---|---|---|
| Neon | PG 19 | Extension 1.6 | Prefer scheduled Function Triggers; pg_cron runs only while the compute is active, so it needs scale to zero disabled. Docs |
| Neon | PG 18 | Extension 1.6 | Prefer scheduled Function Triggers; pg_cron runs only while the compute is active, so it needs scale to zero disabled. Docs |
| Neon | PG 17 | Extension 1.6 | Prefer scheduled Function Triggers; pg_cron runs only while the compute is active, so it needs scale to zero disabled. Docs |
| Neon | PG 16 | Extension 1.6 | Prefer scheduled Function Triggers; pg_cron runs only while the compute is active, so it needs scale to zero disabled. Docs |
| Neon | PG 15 | Extension 1.6 | Prefer scheduled Function Triggers; pg_cron runs only while the compute is active, so it needs scale to zero disabled. Docs |
| Neon | PG 14 | Extension 1.6 | Prefer scheduled Function Triggers; pg_cron runs only while the compute is active, so it needs scale to zero disabled. Docs |
| AWS RDS | PG 12.5+ | Extension 按引擎次版本 / By engine minor | Configure shared_preload_libraries through the parameter group and check the installer role. Docs |
Check support by platform
- AWS RDS for PostgreSQL
Supported
- Amazon Aurora PostgreSQL
Supported
- Supabase Postgres
Supported
- Neon Serverless Postgres
Limited support
- Google Cloud SQL for PostgreSQL
Supported
- Azure Database for PostgreSQL
Supported
- Self-Hosted PostgreSQL
Supported
Check the version on your instance
SELECT version(); SELECT version, installed FROM pg_available_extension_versions WHERE name = 'pg_cron';