Representative relational connector. The other relational connectors (MySQL, MSSQL, BigQuery, Snowflake, Redshift) follow the same overall behaviour with dialect-specific differences in identifier quoting, preview syntax, and supported types.
| Field | Required | Sensitive | Default |
|---|---|---|---|
| Host | Yes | Yes | — |
| Port | Yes | No | 5432 |
| Database | Yes | No | — |
| Username | Yes | Yes | — |
| Password | Yes | Yes | — |
| Schema | No | No | public |
| Use SSL | No | No | false |
You need a PostgreSQL user with permissions on the schemas DagFlux will read from and write to. Best practice is to create a dedicated user rather than reusing an admin account.
Open psql or any SQL client connected to your PostgreSQL server as a user with
the CREATEROLE privilege (commonly postgres).
Replace the password with a strong one of your own.
CREATE USER dagflux WITH PASSWORD 'choose-a-strong-password';
If DagFlux only needs to read from and write to the public schema:
-- Allow connecting and using the schema
GRANT CONNECT ON DATABASE mydb TO dagflux;
GRANT USAGE ON SCHEMA public TO dagflux;
-- Read + write on existing tables
GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA public TO dagflux;
GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA public TO dagflux;
-- Same permissions on tables created in the future
ALTER DEFAULT PRIVILEGES IN SCHEMA public
GRANT SELECT, INSERT, UPDATE, DELETE ON TABLES TO dagflux;
ALTER DEFAULT PRIVILEGES IN SCHEMA public
GRANT USAGE, SELECT ON SEQUENCES TO dagflux;
-- Allow DagFlux to create new tables (needed for new-table transformations and joins)
GRANT CREATE ON SCHEMA public TO dagflux;
If you'll only ever use this connection for sources (no transformer or join writing into it),
drop the INSERT, UPDATE, DELETE, CREATE grants and keep just SELECT:
GRANT CONNECT ON DATABASE mydb TO dagflux;
GRANT USAGE ON SCHEMA public TO dagflux;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO dagflux;
ALTER DEFAULT PRIVILEGES IN SCHEMA public
GRANT SELECT ON TABLES TO dagflux;
If your PostgreSQL server is firewalled, make sure your machine's IP address is allowed in
pg_hba.conf and (if hosted) in the cloud provider's firewall rules. Cloud providers
(AWS RDS, GCP Cloud SQL, Azure Database for PostgreSQL, Supabase, etc.) all expose this through
their console.
Use the user, password, and database you set up. Pick the schema you granted access to. Enable SSL if your server requires it (most cloud providers do).
When you ask the AI assistant to transform data sitting in PostgreSQL, the assistant uses prompts written specifically for PostgreSQL. The shape of the result depends on the storage location and operation mode you choose — see Nodes — Transformer.