The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: update blog 'Postgres as a CRON Server'
Angelicod87c512aef6c
diff --git a/www/_blog/2021-03-05-postgres-as-a-cron-server.mdx b/www/_blog/2021-03-05-postgres-as-a-cron-server.mdxindex a8b46381ae9..020bb9123fc 100644--- a/www/_blog/2021-03-05-postgres-as-a-cron-server.mdx+++ b/www/_blog/2021-03-05-postgres-as-a-cron-server.mdx@@ -53,6 +53,16 @@ If you're using Supabase you can also enable it in the Dashboard.+#### Granting access to the extension++If you're planning to use a `non-superuser` role to schedule jobs, ensure that they are granted access to the `cron` schema and its underlying objects beforehand.+```sql+grant usage on schema cron to {{DB user}};+grant all privileges on all tables in schema cron to {{DB user}};+```++Failure to do so would result in jobs by these roles to not run at all.+### Postgres + webhooksThe Supabase customer wanted to call external endpoints every day. How would we do this? Another extension of course. This time we're going to use [pgsql-http](https://github.com/pramsey/pgsql-http) by [@pramsey](https://github.com/pramsey). Using the same technique, we can enable the extension (if it exists in your cloud provider).