Skip to content

PostgreSQL

PostgreSQL connector allows querying PostgreSQL databases.

Config Schema

FieldTypeRequiredDescription
typestringyesconstant: postgres
hostsstring[]yesList of database hosts
databasestringyesDatabase name
userstringyesUsername
passwordstringyesPassword
portintegeryesTCP port (default 5432)
schemastringnoinstead of “public” it could be custom
tls_filestringnoPEM-encoded certificate for TLS
enable_tlsbooleannoEnable TLS/SSL connection
conn_stringstringnoDSN-like connection string

Config example:

type: postgres
hosts:
- localhost
database: mydb
user: postgres
password: secret
port: 5432
schema: sales
tls_file: "" # Optional PEM-encoded certificate
enable_tls: false # Enable TLS/SSL connection

Or as alternative with plain DSN:

type: postgres
conn_string: postgresql://my_user:my_pass@localhost:5432/mydb

Deploy PostgreSQL Sample Databases