Atlas logo
⌘K

Documentation

Getting Started
Data
Maps
Interfaces
Workflows
Forms
Sharing & Collaboration
Projects & Management
Integrations

PostgreSQL

Connect to PostgreSQL databases to query and analyze your data

Connect to PostgreSQL databases to query and analyze your relational data. Supports PostGIS for spatial queries.

Connect to PostgreSQL

  1. Click Add data in the Layers panel
  2. Go to the Connections tab
  3. Select PostgreSQL
  4. Fill in the connection parameters
  5. Click Create Connection

Connection Parameters

ParameterRequiredDescription
Connection NameYesA friendly name to identify this connection
HostYesHostname or IP address (e.g., localhost, db.example.com)
PortYesPort number (default: 5432)
DatabaseYesDatabase name to connect to
UsernameYesDatabase username
PasswordYesDatabase password
SchemaNoDefault schema within the database

SSL/TLS Configuration

Enable SSL/TLS for encrypted connections to your database. When enabled, you can optionally upload:

  • Client Certificate: PEM or CRT format
  • Private Key: PEM or KEY format
  • CA Certificate: For server verification

Working with Data

After connecting, browse available tables and views. Select the data you want to import and click Add to Project. Tables with PostGIS geometry columns import as vector layers with all attributes preserved.

Firewall Configuration

If your database is behind a firewall, whitelist these Atlas IP addresses:

16.16.129.130
51.20.23.178
13.50.71.210
51.21.188.73

Troubleshooting

IssueSolution
Connection RefusedVerify host and port. Check postgresql.conf allows external connections.
Authentication FailedConfirm credentials. Check pg_hba.conf for auth method.
Database Not FoundDatabase names are case-sensitive.
No Spatial DataEnsure PostGIS is installed. Run SELECT * FROM geometry_columns; to verify.
TimeoutCheck network connectivity and firewall rules.
PreviousFeature ServerIntegrations
NextBigQueryIntegrations