Back to Data Sources
🐘

PostgreSQL

Full support including schemas, views, and advanced data types

Connection Settings

FieldDescriptionExample
HostDatabase server hostname or IPdb.example.com
PortPostgreSQL port (default: 5432)5432
DatabaseDatabase name to connect toanalytics
SchemaDefault schema (optional)public
UsernameDatabase userdbcraft_user
PasswordUser password (encrypted at rest)••••••••

Features

Multiple Schemas

Access all schemas in your database with full navigation

SSL Connections

Secure TLS connections with certificate support

Read Replicas

Connect to read replicas for analytics queries

Connection Pooling

Built-in pooling for efficient resource usage

SSL Modes

ModeDescription
disableNo SSL (not recommended)
requireRequire SSL but don't verify certificate
verify-caVerify certificate is signed by trusted CA
verify-fullVerify CA and hostname match (recommended)

Recommended Permissions

For read-only analytics, create a dedicated role:

CREATE ROLE dbcraft_reader WITH LOGIN PASSWORD 'secure_password';
GRANT CONNECT ON DATABASE mydb TO dbcraft_reader;
GRANT USAGE ON SCHEMA public TO dbcraft_reader;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO dbcraft_reader;
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO dbcraft_reader;