Connect PostgreSQL
Detailed guide for connecting PostgreSQL to Data Explorer, including SSL configuration, Docker setup, and common troubleshooting.
PostgreSQL
5432
postgresql://
Pooled Adapter
How to Connect
Method 1: Connection URI
# General format
postgresql://admin:password@localhost:5432/mydb?sslmode=require
Method 2: Connection Form
HostlocalhostIP address or hostname of the database serverPort5432Default port: 5432UsernameadminLogin user with database accessPassword••••••Password (AES-256 encrypted before storage)DatabasemydbDatabase name you want to exploreConnection Guardrails
SSH Tunneling (Secure)
- Supports authentication via password or Private Key (OpenSSH format).
- Automatic destination IP validation (SSRF Protection).
- Periodic tunnel health checks to maintain connectivity.
Supported Features
- Full schema introspection with pg_catalog
- Foreign key relationship detection
- Index analysis and optimization hints
- JSONB column support
- Materialized view listing
- ENUM type discovery
- PostGIS spatial data support
Internal Introspection Query
# Table structure analysis query
SELECT table_name, column_name, data_type, is_nullable
FROM information_schema.columns
WHERE table_schema = 'public'
ORDER BY table_name, ordinal_position;
Docker Quick Start
# Start PostgreSQL container
docker run -d \
--name data-explorer-postgres \
-e POSTGRES_USER=admin \
-e POSTGRES_PASSWORD=secret123 \
-e POSTGRES_DB=dev_database \
-p 5432:5432 \
postgres:16-alpine
Advanced Tuning
Connection Pooling
By default, the system maintains a connection pool to optimize response speed. For databases with limited sessions (like Supabase Free Tier), consider reducing the timeout to free up connections faster.
SSL/TLS Handshake
The system supports SSL Modes "prefer" and "require". For connections requiring custom CA certificates, you need to mount the certificate file into the /certs directory of the backend server.
Security Note
For cloud providers like Neon, Supabase, or AWS RDS, SSL is required. Add ?sslmode=require to your connection string or enable the SSL toggle in the connection form.
Ready to explore data?
Join the community on GitHub to contribute to the smartest local database IDE.
Launch App