Connect to Supabase PostgreSQL from Mac
Choose a Supabase PostgreSQL connection method that your Mac’s network can reach. Use the database password, separate from your Supabase account password and project API keys.
Before you start
Section titled “Before you start”You need a Supabase project, the database password, and one complete set of connection details. For a desktop client, Supabase documents the session pooler as an IPv4 option.
Find your connection details
Section titled “Find your connection details”Open the project’s connection panel and choose a method:
| Method | Network and session behavior |
|---|---|
| Direct | Uses IPv6 unless the project has IPv4 access configured. |
| Session pooler | Provides IPv4 access and retains a server connection for the client session. |
| Transaction pooler | Shares server connections between transactions; intended for short-lived application connections. |
See Supabase’s connection guide for current choices. Copy the chosen method’s host, port, database, and complete user name together. Pooler and direct credentials can use different user name formats.
Connect to Supabase PostgreSQL from Mac
Section titled “Connect to Supabase PostgreSQL from Mac”- Create a PostgreSQL connection using connection basics.
- Enter all connection fields from the selected method.
- Enter the database password in Password.
- Configure SSL Mode for the project’s connection requirements.
- Click Test.
- Click Save & Connect after a successful test.
SSL and network access
Section titled “SSL and network access”Use the selected endpoint’s hostname for SSL/TLS configuration. If your network lacks IPv6, select a reachable session pooler rather than mixing its port with the direct hostname.
If it does not connect
Section titled “If it does not connect”Network is unreachablepassword authentication failed for userFor a network error on the direct endpoint, check IPv6 availability or select the session pooler. For authentication, compare the full user name and database password with the selected method. See connection failed or 28P01.
Related
Section titled “Related”Continue with write and run SQL, or return to the PostgreSQL overview.