* using slack clone to test * updates auth functions to handle new GUC commands * move postgREST to new version * testing with todo list * makeing our mount setup far more robust * Adds some usage commands * cleans up the auth functions * test with todos app * fix env var for GUC * new auth functions - changed for performance improvement * Adds some integration tests for RLS * anon volume on postgres * remove unused helpers * fix broken docusaurus build * Fix complaining vercel * test instructions * Use named imports * Fixes imports * all relative * chore: add in tsconfig.json to /web * finding these all over the place * Update docker/docker-compose.yml Co-authored-by: Steve Chavez <stevechavezast@gmail.com> Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com> Co-authored-by: Steve Chavez <stevechavezast@gmail.com>
67 lines
1.4 KiB
Plaintext
67 lines
1.4 KiB
Plaintext
---
|
|
id: extensions
|
|
title: Overview
|
|
description: Using Postgres extensions.
|
|
---
|
|
|
|
import ExtensionsComponent from '@site/src/components/Extensions'
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
Extensions are exactly as they sound - they "extend" the database with functionality which isn't part of the Postgres core.
|
|
Supabase has pre-installed some of the most useful open source extensions.
|
|
|
|
|
|
### Enable and disable extensions
|
|
|
|
|
|
|
|
<Tabs
|
|
defaultValue="UI"
|
|
values={[
|
|
{label: 'UI', value: 'UI'},
|
|
{label: 'SQL', value: 'SQL'},
|
|
]}>
|
|
<TabItem value="UI">
|
|
|
|
```sh
|
|
1. Go to the Database page
|
|
2. Click on "Extensions" in the sidebar
|
|
3. Find the extension you would like to enable/disable
|
|
4. Click the toggle.
|
|
```
|
|
|
|
|
|
<video width="99%" muted playsInline controls={true}>
|
|
<source src="/docs/videos/toggle-extensions.mp4" type="video/mp4" muted playsInline />
|
|
</video>
|
|
|
|
|
|
|
|
</TabItem>
|
|
<TabItem value="SQL">
|
|
|
|
```sql
|
|
|
|
-- Example: enable the "pgtap" extension
|
|
create extension pgtap;
|
|
|
|
-- Example: disable the "pgtap" extension
|
|
drop extension pgtap;
|
|
|
|
```
|
|
|
|
Even though the SQL code is `create extension`, this is the equivalent of "enabling the extension".
|
|
To disable an extension you can call `drop extension`.
|
|
|
|
</TabItem>
|
|
|
|
</Tabs>
|
|
|
|
|
|
### Full list of extensions
|
|
|
|
Supabase is pre-configured with over 50 extensions. You can also install your own SQL extensions directly into the database through our SQL editor.
|
|
|
|
<ExtensionsComponent />
|