mirror of
https://github.com/supabase/supabase.git
synced 2026-10-14 21:59:16 +03:00
* 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>
25 lines
1.0 KiB
Plaintext
25 lines
1.0 KiB
Plaintext
---
|
|
id: 'psql'
|
|
title: 'Connecting with PSQL'
|
|
breadcrumb: 'GUI Quickstarts'
|
|
hideToc: true
|
|
---
|
|
|
|
[`psql`](https://www.postgresql.org/docs/current/app-psql.html) is a command-line tool that comes with Postgres.
|
|
|
|
## Connecting with SSL
|
|
|
|
You should connect to your database using SSL wherever possible, to prevent snooping and man-in-the-middle attacks.
|
|
|
|
You can obtain your connection info and Server root certificate from your application's dashboard:
|
|
|
|

|
|
|
|
Download your [SSL certificate](#connecting-with-ssl) to `/path/to/prod-supabase.cer`.
|
|
|
|
Find your connection settings. Go to your [`Database Settings`](https://supabase.com/dashboard/project/_/database/settings) and make sure `Use connection pooling` is checked. Change the connection mode to `Session`, and copy the parameters into the connection string:
|
|
|
|
```shell
|
|
psql "sslmode=verify-full sslrootcert=/path/to/prod-supabase.cer host=[CLOUD_PROVIDER]-0-[REGION].pooler.supabase.com dbname=postgres user=postgres.[PROJECT_REF]"
|
|
```
|