mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
45 lines
890 B
Plaintext
45 lines
890 B
Plaintext
---
|
|
title: 'Install'
|
|
---
|
|
|
|
Install the Supabase Cron Postgres Module to begin scheduling recurring Jobs.
|
|
|
|
<Tabs
|
|
scrollable
|
|
size="small"
|
|
type="underlined"
|
|
defaultActiveId="dashboard"
|
|
queryGroup="database-method"
|
|
>
|
|
<TabPanel id="dashboard" label="Dashboard">
|
|
|
|
1. Go to the [Cron Postgres Module](/dashboard/project/_/integrations/cron/overview) under Integrations in the Dashboard.
|
|
2. Enable the `pg_cron` extension.
|
|
|
|
</TabPanel>
|
|
<TabPanel id="sql" label="SQL">
|
|
|
|
```sql
|
|
create extension pg_cron with schema pg_catalog;
|
|
|
|
grant usage on schema cron to postgres;
|
|
grant all privileges on all tables in schema cron to postgres;
|
|
```
|
|
|
|
</TabPanel>
|
|
</Tabs>
|
|
|
|
## Uninstall
|
|
|
|
Uninstall Supabase Cron by disabling the `pg_cron` extension:
|
|
|
|
```sql
|
|
drop extension if exists pg_cron;
|
|
```
|
|
|
|
<Admonition type="danger">
|
|
|
|
Disabling the `pg_cron` extension will permanently delete all Jobs.
|
|
|
|
</Admonition>
|