Files
supabase/apps/docs/content/guides/database/metabase.mdx
Miranda Limonczenko 038e68b777 docs: unify pooler guidance across the docs (#52332)
Closes DOCS-1519

## Problem

DOCS-1519 asks the docs team to do two things: unify the connection
recommendations, and remove PgBouncer deprecation notices. PgBouncer
isn't deprecated. It runs the dedicated pooler.

**Deprecation notices:** no page in `apps/docs` says PgBouncer is
deprecated. The last notice was in a 2021 blog post, and #52249 removed
it. Two notices remain outside the docs:

- **Studio:** the support form's IPv4 alert links to a "PGBouncer and
IPv4 Deprecation" discussion.
- **Blog:** a September 2023 update says PgBouncer is deprecated as of
January 2024.

**Recommendations:** Supabase runs two server-side poolers. The shared
pooler runs on Supavisor and is on every plan. The dedicated pooler runs
on PgBouncer and is on the Pro Plan and above.

The docs name the two poolers in many ways, and many pages leave out the
dedicated pooler. Some pages contradict the recommendations table in
[Connect to your
database](https://supabase.com/docs/guides/database/connecting-to-postgres#choose-a-connection-method):

- **Prepared statements:** `connecting-to-postgres` says transaction
mode doesn't support them. That is true for the shared pooler only. The
dedicated pooler supports them on PgBouncer 1.21 and later.
- **Migrations:** the restore pages, the quickstart partial, and the
RedwoodJS quickstart send migrations and `pg_dump` through session mode.
The table says to use the direct connection.
- **Dedicated pooler:** `pooling-and-limits` says to use it on any IPv6
network. The table keeps it for high-load apps.

## Solution

- **Names:** pages say _shared pooler_ and _dedicated pooler_, in
lowercase. Each page names Supavisor or PgBouncer once, after the pooler
name. _Session pooler_ and _Transaction pooler_ stay only where a page
quotes the Connect dialog.
- **Plans:** pooler and connection pages say _Pro Plan and above_
instead of _paid plans_.
- **Recommendations:** every page above now matches the table. The
shared pooler in session mode is the fallback for IPv4-only networks.
- **Dedicated pooler coverage:** Managing connections and the IPv4
add-on page now cover the dedicated pooler.
- **Word list:** `WORD_LIST.md` gets `dedicated pooler`, `shared
pooler`, and `paid plan` entries.

**Also fixed:**

- The direct connection examples in both restore pages had the wrong
username and `.supabase.com`.
- The Managing connections heading changed. It keeps the
`#configuring-supavisors-pool-size` anchor, because Studio links to it.

**Not changed:** billing and usage pages that say _paid plans_,
self-hosting pages, `apps/www`, and Studio. The Postgres and Render
migration guides moved to `apps/kb` on `master` while this PR was open,
so their edits are no longer in this diff.

**Troubleshooting articles:** production redirects
`/docs/guides/troubleshooting/` to `/kb/troubleshooting/`, which builds
from the troubleshooting repo. The troubleshooting edits move there
under DOCS-1521.

**Size:** 25 files, 115 lines added and 97 removed.

## Preview links

| Page | Live | Preview | Search for |
| ---- | ---- | ------- | ---------- |
| /connecting-to-postgres |
[Live](https://supabase.com/docs/guides/database/connecting-to-postgres)
|
[Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connecting-to-postgres)
| A high-load application on the Pro Plan and above |
| /pooling-and-limits |
[Live](https://supabase.com/docs/guides/database/connecting-to-postgres/pooling-and-limits)
|
[Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connecting-to-postgres/pooling-and-limits)
| Use it for high-load applications |
| /connection-management |
[Live](https://supabase.com/docs/guides/database/connection-management)
|
[Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connection-management)
| The pool size applies to both the shared pooler |
| /ipv4-address |
[Live](https://supabase.com/docs/guides/platform/ipv4-address) |
[Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/platform/ipv4-address)
| When using the dedicated pooler in an IPv6-incompatible network |
| /backup-restore |
[Live](https://supabase.com/docs/guides/platform/migrating-within-supabase/backup-restore)
|
[Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/platform/migrating-within-supabase/backup-restore)
| Use the direct connection string. If your network |
| /dashboard-restore |
[Live](https://supabase.com/docs/guides/platform/migrating-within-supabase/dashboard-restore)
|
[Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/platform/migrating-within-supabase/dashboard-restore)
| Use the direct connection string. If your ISP |
| /redwoodjs |
[Live](https://supabase.com/docs/guides/getting-started/quickstarts/redwoodjs)
|
[Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/getting-started/quickstarts/redwoodjs)
| This quickstart uses two connection strings |


## Review instructions

1. Open [Connect to your
database](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connecting-to-postgres).
The table and the **Dedicated pooler** section say _Pro Plan and above_.
2. Open [Connection pooling and
limits](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connecting-to-postgres/pooling-and-limits).
It recommends the dedicated pooler for high-load apps only.
3. Open [Managing
connections](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connection-management).
The pool size section covers both the shared pooler and the dedicated
pooler.
4. Open [Backup and
restore](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/platform/migrating-within-supabase/backup-restore).
Step 3 says to use the direct connection string.

## Checklist

Check all before review:

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-27 08:35:59 -07:00

81 lines
2.2 KiB
Plaintext

---
id: 'metabase'
title: 'Connecting to Metabase'
breadcrumb: 'GUI Quickstarts'
hideToc: true
---
[`Metabase`](https://www.metabase.com/) is an Open Source data visualization tool. You can use it to explore your data stored in Supabase.
<StepHikeCompact>
<StepHikeCompact.Step step={1}>
<StepHikeCompact.Details title="Register">
Create a [Metabase account](https://store.metabase.com/checkout) or deploy locally with [Docker](https://www.docker.com/products/docker-desktop/)
</StepHikeCompact.Details>
<StepHikeCompact.Code>
Deploying with Docker:
```sh
docker pull metabase/metabase:latest
```
Then run:
```sh
docker run -d -p 3000:3000 --name metabase metabase/metabase
```
The server should be available at [`http://localhost:3000/setup`](http://localhost:3000/setup)
</StepHikeCompact.Code>
</StepHikeCompact.Step>
<StepHikeCompact.Step step={2}>
<StepHikeCompact.Details title="Connect to Postgres">
Connect your Postgres server to Metabase.
- On your project dashboard, click [Connect](/dashboard/project/_?showConnect=true)
- View parameters under "Session pooler"
<Admonition type="note" title="Connection notice">
If you're in an [IPv6 environment](/docs/guides/platform/ipv4-address#checking-your-network-ipv6-support) or have the [IPv4 Add-On](/docs/guides/platform/ipv4-address#understanding-ip-addresses), you can use the direct connection string instead of the Session pooler.
</Admonition>
- Enter your database credentials into Metabase
</StepHikeCompact.Details>
<StepHikeCompact.Code>
Example credentials:
![Name Postgres Server.](/docs/img/guides/database/connecting-to-postgres/metabase/add-pg-server.png)
</StepHikeCompact.Code>
</StepHikeCompact.Step>
<StepHikeCompact.Step step={3}>
<StepHikeCompact.Details title="Explore">
Explore your data in Metabase
</StepHikeCompact.Details>
<StepHikeCompact.Code>
![explore data](/docs/img/guides/database/connecting-to-postgres/metabase/explore.png)
</StepHikeCompact.Code>
</StepHikeCompact.Step>
</StepHikeCompact>