Commit Graph
6 Commits
Author SHA1 Message Date
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
CharisandChris Chinchilla 47705a8968 chore: replace all supabase urls with relative urls (#38537)
* fix: rewrite relative URLs when syncing to GitHub discussion

Relative URLs back to supabse.com won't work in GitHub discussions, so
rewrite them back to absolute URLs starting with https://supabase.com

* fix: replace all supabase urls with relative urls

* chore: add linting for relative urls

* chore: bump linter version

* Prettier

---------

Co-authored-by: Chris Chinchilla <chris.ward@supabase.io>
2025-09-09 12:54:33 +00:00
Danny WhiteandJoshen Lim d914b81f47 feat: consolidate settings (#37580)
* feat: move storage settings

* feat: redirect

* feat: database settings in service area

* feat: move data api settings

* fix: revert data API placement

* feat: minor UX touches

* fix: simplify configuration group

* feat: references to database settings

* feat: references to storage settings

* fix: redirects and formatting

* fix: Import StorageMenu dynamically to avoid SSR issues with useLocalStorage

* fix: move Data API closer to semantic siblings

* fix: revert smart comma

* Shift bucket sort logic into storage explorer store

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-08-04 16:21:54 +10:00
Charis e2fecc0f5d chore(docs linter): bump version (#36715)
* chore(docs linter): bump version

* style: format
2025-07-03 14:46:29 +00:00
PeterandTyler 6a812a04b6 Update docs for new connection strings and disk/compute pages in the dashboard (#35128)
* Update all docs that make references to the database settings to find the connection strings.

Update all docs that references the database settings for the compute and disk page

* run prettier

* run pnpm format instead of prettier directly.

* first run through, fix grammar and reword awkward sentences

* Fix typos and remove unnecessary whitespace

* Apply suggestions from code review

Co-authored-by: Tyler <dshukertjr@gmail.com>

---------

Co-authored-by: Tyler <dshukertjr@gmail.com>
2025-04-21 08:59:43 -05:00
a0eff938ff New connection management docs (#29166)
* recreated connecting-to-postgres

* adding GUI quickstart section with DBeaver

* moved psql and pgadmin docs to GUI quickstart

* added Prisma installation docs. Moved postgres.js and Drizzle into own section

* added connection management docs

* moved supavisor troubleshooting guide into troubleshooting section. Probably should not merge without adding more guides

* updated IPv4 Add ons docs

* removed typo

* Update apps/docs/content/guides/platform/ipv4-address.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/platform/ipv4-address.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/database/supavisor.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/database/prisma.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/database/connection-management.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/database/connection-management.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* removed repetition in connection-management | added photos

* Update apps/docs/content/guides/database/connecting-to-postgres.mdx

Co-authored-by: Stas <sts@abc3.dev>

* Update apps/docs/content/guides/platform/ipv4-address.mdx

Co-authored-by: Stas <sts@abc3.dev>

* Update apps/docs/content/guides/database/connection-management.mdx

Co-authored-by: Stas <sts@abc3.dev>

* Update apps/docs/content/guides/database/connecting-to-postgres.mdx

Co-authored-by: Stas <sts@abc3.dev>

* Update apps/docs/content/guides/platform/ipv4-address.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/database/connecting-to-postgres.mdx

Co-authored-by: Stas <sts@abc3.dev>

* updated proxy suggestions

* added redirects

* added images to connection-management guide

* added unique ids to titles in prisma-troubleshooting section

* added images to connection guide

* added new images to prisma guide

* reformatted admonition

---------

Co-authored-by: Brian Brennglass <brian@Brians-MacBook-Pro.local>
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
Co-authored-by: Stas <sts@abc3.dev>
2024-10-03 19:42:49 +00:00