The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
📝 Update pg_cron documentation with examples for calling function (#26186)
Thibault CHAUSSONf5324af575ba
diff --git a/apps/docs/content/guides/database/extensions/pg_cron.mdx b/apps/docs/content/guides/database/extensions/pg_cron.mdxindex 9526c823a62..29da04430f5 100644--- a/apps/docs/content/guides/database/extensions/pg_cron.mdx+++ b/apps/docs/content/guides/database/extensions/pg_cron.mdx@@ -99,7 +99,15 @@ select cron.schedule('nightly-vacuum', '0 3 * * *', 'VACUUM');Create a [`hello_world()`](https://supabase.com/docs/guides/database/functions?language=sql#simple-functions) database function and then call it every 5 minutes:```sql-select cron.schedule('call-db-function', '*/5 * * * *', 'CALL hello_world()');+select cron.schedule('call-db-function', '*/5 * * * *', 'SELECT hello_world()');+```++### Call a database stored procedure++To use a stored procedure, you can call it like this:++```sql+select cron.schedule('call-db-procedure', '*/5 * * * *', 'CALL my_procedure()');```### Invoke Supabase Edge Function every 30 seconds@@ -152,6 +160,8 @@ cron.alter_job()```+It is also possible to modify a job by using the `cron.schedule()` function, with the same job name. This will replace the existing job, in the manner of an upsert.+### Unschedule a jobUnschedules a job called `'nightly-vacuum'`