The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: editing a cronjob (#19140)
Bobbie Soedirgo20174e751cab
diff --git a/apps/docs/pages/guides/database/extensions/pg_cron.mdx b/apps/docs/pages/guides/database/extensions/pg_cron.mdxindex 5eb6e657edf..b55135d952a 100644--- a/apps/docs/pages/guides/database/extensions/pg_cron.mdx+++ b/apps/docs/pages/guides/database/extensions/pg_cron.mdx@@ -109,6 +109,30 @@ select);```+### Edit a job++Changes the frequency of a job called `'vacuum'` to once every 5 minutes.++```sql+select cron.alter_job(+ job_id := (select jobid from cron.job where jobname = 'vacuum'),+ schedule := '*/5 * * * *'+);+```++Full options for the `cron.alter_job()` function are:++```sql+cron.alter_job(+ job_id bigint,+ schedule text default null,+ command text default null,+ database text default null,+ username text default null,+ active boolean default null+)+```+### Unschedule a jobUnschedules a job called `'nightly-vacuum'`