Configuring pg_cron
Suggest editsIn
postgresql.conf
, addpg_cron
to theshared_preload_libraries
parameter:If
shared_preload_libraries
has other extensions, then you can addpg_cron
to the list. The order doesn't matter.
- Metadata tables for
pg_cron
will be created in the "postgres" database, but you can alter this with:
- You can alter the timezone of pg_cron from GMT if required:
- Restart Postgres.
Create the
pg_cron
extension in your database:Grant usage to
pg_cron
as needed to allow other users to schedule and manage their own jobs:
Could this page be better? Report a problem or suggest an addition!