Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Update docs for Supavisor launch (#20234)

Chris Gwilliams855c7b5030e7
diff --git a/apps/docs/pages/guides/getting-started/architecture.mdx b/apps/docs/pages/guides/getting-started/architecture.mdx
index 448299322c9..c5ab7d932e3 100644
--- a/apps/docs/pages/guides/getting-started/architecture.mdx
+++ b/apps/docs/pages/guides/getting-started/architecture.mdx
@@ -96,14 +96,14 @@ A RESTful API for managing your Postgres. Fetch tables, add roles, and run queri
- License: [Apache 2.0](https://github.com/supabase/postgres-meta/blob/master/LICENSE)
- Language: NodeJS / TypeScript
-### PgBouncer
+### Supavisor
-A lightweight connection pooler for PostgreSQL. This is useful for connecting to Postgres when using Serverless functions.
+A cloud-native, multi-tenant Postgres connection pooler.
-- Official Docs: [pgbouncer.org](http://www.pgbouncer.org/)
-- Source code: [pgbouncer/pgbouncer](https://github.com/pgbouncer/pgbouncer)
-- License: [ISC](https://github.com/pgbouncer/pgbouncer/blob/master/COPYRIGHT)
-- Language: C
+- Official Docs: [Supavisor Github Pages](https://supabase.github.io/supavisor/)
+- Source code: [supabase/supavisor](https://github.com/supabase/supavisor)
+- License: [Apache 2.0](https://github.com/supabase/supavisor/blob/main/LICENSE)
+- Language: Elixir
### Kong (API gateway)
diff --git a/apps/docs/pages/guides/getting-started/quickstarts/redwoodjs.mdx b/apps/docs/pages/guides/getting-started/quickstarts/redwoodjs.mdx
index 58a7ccbf4be..b4362694de3 100644
--- a/apps/docs/pages/guides/getting-started/quickstarts/redwoodjs.mdx
+++ b/apps/docs/pages/guides/getting-started/quickstarts/redwoodjs.mdx
@@ -90,7 +90,7 @@ export const meta = {
* The `DIRECT_URL` should use the `Connection String` from your Supabase project. Hint: the port is `5432`.
- * The `DATABASE_URL` should use the `Connection Pooling / Connection String` from your Supabase project. Hint: the port is `6432`.
+ * The `DATABASE_URL` should use the `Connection Pooling / Connection String` from your Supabase project. Hint: the port is `6543`.
<Admonition type="note">
@@ -106,8 +106,8 @@ export const meta = {
# PostgreSQL connection string used for migrations
DIRECT_URL="postgres://postgres:[YOUR-PASSWORD]@db.[YOUR-PROJECT-REF].supabase.co:5432/postgres"
- # PostgreSQL connection string with pgBouncer config — used by Prisma Client
- DATABASE_URL="postgres://postgres:[YOUR-PASSWORD]@db.[YOUR-PROJECT-REF].supabase.co:6543/postgres?pgbouncer=true"
+ # PostgreSQL pooler connection string with Supavisor config — used by Prisma Client
+ DATABASE_URL="postgres://postgres.[YOUR-PROJECT-REF]:[YOUR-PASSWORD]@aws-0-[YOUR-PROJECT-REGION].pooler.supabase.com:6543/postgres"
```
</StepHikeCompact.Code>
@@ -238,7 +238,7 @@ export const meta = {
![RedwoodJS Splash Page](/docs/img/redwoodjs-qs-countries-ui.png)
</StepHikeCompact.Code>
- </StepHikeCompact.Step>
+ </StepHikeCompact.Step>
</StepHikeCompact>
export const Page = ({ children }) => <Layout meta={meta} children={children} hideToc={true} />
diff --git a/apps/docs/pages/guides/platform/custom-postgres-config.mdx b/apps/docs/pages/guides/platform/custom-postgres-config.mdx
index 5f1a1c30c8f..62bce373873 100644
--- a/apps/docs/pages/guides/platform/custom-postgres-config.mdx
+++ b/apps/docs/pages/guides/platform/custom-postgres-config.mdx
@@ -79,9 +79,8 @@ export default Page
You can also [customize some parameters](https://supabase.com/dashboard/project/_/settings/database) for the Connection Pooler:
-1. [Pooling Mode](https://devcenter.heroku.com/articles/best-practices-pgbouncer-configuration#pgbouncer-s-connection-pooling-modes)
-1. [Default Pool Size](https://www.pgbouncer.org/config.html)
-1. [Max Client Connections](https://www.pgbouncer.org/config.html)
+1. [Pooling Mode](https://supabase.github.io/supavisor/configuration/pool_modes/)
+1. [Default Pool Size](https://supabase.github.io/supavisor/configuration/users/)
The default pool size, and the maximum number of clients allowed to connect concurrently is automatically optimized based on the compute add-on being used. At the moment, the Dashboard only reflects any custom configuration being used, and does not include the default optimized numbers used for your project.
diff --git a/apps/docs/pages/guides/platform/network-restrictions.mdx b/apps/docs/pages/guides/platform/network-restrictions.mdx
index 62c243e79e1..511a41aff31 100644
--- a/apps/docs/pages/guides/platform/network-restrictions.mdx
+++ b/apps/docs/pages/guides/platform/network-restrictions.mdx
@@ -12,7 +12,7 @@ Network Restrictions is currently in beta and is slowly being made available to
</Admonition>
-Each Supabase project comes with configurable restrictions on the IP ranges that are allowed to connect to Postgres and PgBouncer ("your database"). These restrictions are enforced before traffic reaches your database. If a connection is not restricted by IP, it still needs to authenticate successfully with valid database credentials.
+Each Supabase project comes with configurable restrictions on the IP ranges that are allowed to connect to Postgres and its pooler ("your database"). These restrictions are enforced before traffic reaches your database. If a connection is not restricted by IP, it still needs to authenticate successfully with valid database credentials.
To get started:
@@ -66,7 +66,7 @@ Restrictions applied successfully: true
## Limitations
-- The current iteration of Network Restrictions applies to connections to Postgres and PgBouncer and doesn't currently apply to APIs offered over HTTPS (e.g., PostgREST, Storage, and Auth). This includes using Supabase client libraries like [supabase-js](https://supabase.com/docs/reference/javascript).
+- The current iteration of Network Restrictions applies to connections to Postgres and the database pooler; it doesn't currently apply to APIs offered over HTTPS (e.g., PostgREST, Storage, and Auth). This includes using Supabase client libraries like [supabase-js](https://supabase.com/docs/reference/javascript).
- Network Restrictions should not be used if you need to connect to your Postgres database using Edge Functions.
- [Supavisor](https://github.com/supabase/supavisor/) does not currently support Network Restrictions.
diff --git a/apps/docs/pages/guides/platform/oauth-apps/oauth-scopes.mdx b/apps/docs/pages/guides/platform/oauth-apps/oauth-scopes.mdx
index 05eefdb29ed..c65e06312e3 100644
--- a/apps/docs/pages/guides/platform/oauth-apps/oauth-scopes.mdx
+++ b/apps/docs/pages/guides/platform/oauth-apps/oauth-scopes.mdx
@@ -19,26 +19,26 @@ Scopes are set when you [create an OAuth app](/docs/guides/platform/oauth-apps/b
## Available scopes
-| Name | Type | Description |
-| ---------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `Auth` | `Read` | Retrieve a project's auth configuration<br/>Retrieve a project's SAML SSO providers |
-| `Auth` | `Write` | Update a project's auth configuration<br/>Create, update, or delete a project's SAML SSO providers |
-| `Database` | `Read` | Retrieve the database configuration<br/>Retrieve SQL snippets<br/>Check if the database is in read-only mode<br/>Retrieve a database's SSL enforcement configuration<br/>Retrieve a database's schema typescript types |
-| `Database` | `Write` | Create a SQL query<br/>Enable database webhooks on the project<br/>Update the project's database configuration<br/>Update a database's SSL enforcement configuration<br/>Disable read-only mode for 15mins<br/>Retrieve the pgbouncer configuration<br/>Create a PITR backup for a database |
-| `Domains` | `Read` | Retrieve the custom domains for a project<br/>Retrieve the vanity subdomain configuration for a project |
-| `Domains` | `Write` | Activate, initialize, reverify, or delete the custom domain for a project<br/>Activate, delete or check the availability of a vanity subdomain for a project |
-| `Edge Functions` | `Read` | Retrieve information about a project's edge functions |
-| `Edge Functions` | `Write` | Create, update, or delete an edge function |
-| `Environment` | `Read` | Retrieve branches in a project |
-| `Environment` | `Write` | Create, update, or delete a branch |
-| `Organizations` | `Read` | Retrieve an organization's metadata<br/>Retrieve all members in an organization |
-| `Organizations` | `Write` | Create an organization |
-| `Projects` | `Read` | Retrieve a project's metadata<br/>Check if a project's database is eligible for upgrade<br/>Retrieve a project's network restrictions<br/>Retrieve a project's network bans |
-| `Projects` | `Write` | Create a project<br/>Upgrade a project's database<br/>Remove a project's network bans<br/>Update a project's network restrictions |
-| `Rest` | `Read` | Retrieve a project's PostgREST configuration |
-| `Rest` | `Write` | Update a project's PostgREST configuration |
-| `Secrets` | `Read` | Retrieve a project's API keys<br/>Retrieve a project's secrets<br/>Retrieve a project's pgsodium config |
-| `Secrets` | `Write` | Create or update a project's secrets<br/>Update a project's pgsodium configuration |
+| Name | Type | Description |
+| ---------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `Auth` | `Read` | Retrieve a project's auth configuration<br/>Retrieve a project's SAML SSO providers |
+| `Auth` | `Write` | Update a project's auth configuration<br/>Create, update, or delete a project's SAML SSO providers |
+| `Database` | `Read` | Retrieve the database configuration<br/>Retrieve SQL snippets<br/>Check if the database is in read-only mode<br/>Retrieve a database's SSL enforcement configuration<br/>Retrieve a database's schema typescript types |
+| `Database` | `Write` | Create a SQL query<br/>Enable database webhooks on the project<br/>Update the project's database configuration<br/>Update a database's SSL enforcement configuration<br/>Disable read-only mode for 15mins<br/>Retrieve the pooler configuration<br/>Create a PITR backup for a database |
+| `Domains` | `Read` | Retrieve the custom domains for a project<br/>Retrieve the vanity subdomain configuration for a project |
+| `Domains` | `Write` | Activate, initialize, reverify, or delete the custom domain for a project<br/>Activate, delete or check the availability of a vanity subdomain for a project |
+| `Edge Functions` | `Read` | Retrieve information about a project's edge functions |
+| `Edge Functions` | `Write` | Create, update, or delete an edge function |
+| `Environment` | `Read` | Retrieve branches in a project |
+| `Environment` | `Write` | Create, update, or delete a branch |
+| `Organizations` | `Read` | Retrieve an organization's metadata<br/>Retrieve all members in an organization |
+| `Organizations` | `Write` | Create an organization |
+| `Projects` | `Read` | Retrieve a project's metadata<br/>Check if a project's database is eligible for upgrade<br/>Retrieve a project's network restrictions<br/>Retrieve a project's network bans |
+| `Projects` | `Write` | Create a project<br/>Upgrade a project's database<br/>Remove a project's network bans<br/>Update a project's network restrictions |
+| `Rest` | `Read` | Retrieve a project's PostgREST configuration |
+| `Rest` | `Write` | Update a project's PostgREST configuration |
+| `Secrets` | `Read` | Retrieve a project's API keys<br/>Retrieve a project's secrets<br/>Retrieve a project's pgsodium config |
+| `Secrets` | `Write` | Create or update a project's secrets<br/>Update a project's pgsodium configuration |
export const Page = ({ children }) => <Layout meta={meta} children={children} />
diff --git a/apps/docs/pages/guides/platform/performance.mdx b/apps/docs/pages/guides/platform/performance.mdx
index 9a17faed208..94e07aeccb0 100644
--- a/apps/docs/pages/guides/platform/performance.mdx
+++ b/apps/docs/pages/guides/platform/performance.mdx
@@ -167,9 +167,9 @@ You can pair the information available from `pg_stat_statements` with the detail
## Optimizing the number of connections
-By default, the number of connections allowed to Postgres and PgBouncer is configured based on the resources available to the database.
+By default, the number of connections allowed to Postgres and Supavisor is configured based on the resources available to the database.
-| Compute Add-on | Postgresql connections | PGBouncer connections |
+| Compute Add-on | Postgresql connections | Supavisor connections |
| -------------- | ---------------------- | --------------------- |
| None | 60 | 200 |
| Small | 90 | 200 |
@@ -197,9 +197,9 @@ In such a scenario, you can consider:
### Configuring clients to use fewer connections
-You can use the [pg_stat_activity](https://www.postgresql.org/docs/current/monitoring-stats.html#MONITORING-PG-STAT-ACTIVITY-VIEW) view to debug which clients are holding open connections on your DB. `pg_stat_activity` only exposes information on direct connections to the database. Information on the number of connections to pgbouncer is available [via the metrics endpoint](../platform/metrics).
+You can use the [pg_stat_activity](https://www.postgresql.org/docs/current/monitoring-stats.html#MONITORING-PG-STAT-ACTIVITY-VIEW) view to debug which clients are holding open connections on your DB. `pg_stat_activity` only exposes information on direct connections to the database. Information on the number of connections to Supavisor is available [via the metrics endpoint](../platform/metrics).
-Depending on the clients involved, you might be able to configure them to work with fewer connections (e.g. by imposing a limit on the maximum number of connections they're allowed to use), or shift specific workloads to connect via [pgbouncer](/docs/guides/database/connecting-to-postgres#connection-pooler) instead. Transient workflows, which can quickly scale up and down in response to traffic (e.g. serverless functions), can especially benefit from using a connection pooler rather than connecting to the DB directly.
+Depending on the clients involved, you might be able to configure them to work with fewer connections (e.g. by imposing a limit on the maximum number of connections they're allowed to use), or shift specific workloads to connect via [Supavisor](/docs/guides/database/connecting-to-postgres#connection-pooler) instead. Transient workflows, which can quickly scale up and down in response to traffic (e.g. serverless functions), can especially benefit from using a connection pooler rather than connecting to the DB directly.
### Allowing higher number of connections
diff --git a/apps/docs/pages/guides/platform/ssl-enforcement.mdx b/apps/docs/pages/guides/platform/ssl-enforcement.mdx
index 92f0bdeea14..ec43ff0067a 100644
--- a/apps/docs/pages/guides/platform/ssl-enforcement.mdx
+++ b/apps/docs/pages/guides/platform/ssl-enforcement.mdx
@@ -13,7 +13,7 @@ Postgres SSL Enforcement is currently in beta. Some projects need to [upgrade](/
Your Supabase project supports connecting to the Postgres DB without SSL enabled to maximize client compatibility. For increased security, you can prevent clients from connecting if they're not using SSL.
-SSL enforcement only applies to connections to both Postgres and PgBouncer ("Connection Pooler"); all HTTP APIs offered by Supabase (e.g., PostgREST, Storage, Auth) automatically enforce SSL on all incoming connections.
+SSL enforcement only applies to connections to both Postgres and Supavisor ("Connection Pooler"); all HTTP APIs offered by Supabase (e.g., PostgREST, Storage, Auth) automatically enforce SSL on all incoming connections.
## Manage SSL enforcement via the dashboard