Skip to content

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.

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.

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.

  1. Create a PostgreSQL connection using connection basics.
  2. Enter all connection fields from the selected method.
  3. Enter the database password in Password.
  4. Configure SSL Mode for the project’s connection requirements.
  5. Click Test.
  6. Click Save & Connect after a successful test.

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.

Network is unreachable
password authentication failed for user

For 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.

Continue with write and run SQL, or return to the PostgreSQL overview.