PostgreSQL is the primary destination in MantrixFlow. Use it for analytics schemas, reporting tables, operational replicas, and clean downstream tables separated from production.Documentation Index
Fetch the complete documentation index at: https://docs.mantrixflow.com/llms.txt
Use this file to discover all available pages before exploring further.
Connection fields
| Field | Default | Description |
|---|---|---|
| Connection Name | — | Friendly label shown in the builder |
| Host | — | Database hostname or IP address |
| Port | 5432 | PostgreSQL port |
| Database | — | Database name |
| Username | — | Database user |
| Password | — | Database password |
| Schema | public | Default schema (overridable per-pipeline in the builder) |
| SSL Mode | require | disable, require, verify-ca, verify-full |
Network access
The destination database must accept inbound connections from MantrixFlow’s static ELT server IP on port5432. Copy the IP from the connection form and add it as a /32 allowlist rule in your provider’s firewall.
See Private database access for provider-specific steps.
Private-only destinations without a public endpoint are not supported in this release.
Provider setup
| Provider | What to configure |
|---|---|
| AWS RDS / Aurora PostgreSQL | Add an inbound security group rule for port 5432 from MantrixFlow’s /32. See AWS RDS security groups. |
| Supabase | Use the host from the dashboard. Add MantrixFlow’s /32 under Network Restrictions if enabled. See Supabase Network Restrictions. |
| Neon | Use the direct connection details. Add MantrixFlow to IP Allow when enabled for the project. See Neon IP Allow. |
| GCP Cloud SQL for PostgreSQL | Enable public IP and add MantrixFlow’s /32 as an authorized network. See Google authorized networks. |
| Azure Database for PostgreSQL | Use public access and create a firewall rule with start and end IP both equal to MantrixFlow’s IP. See Azure firewall rules. |
| Aiven for PostgreSQL | Add MantrixFlow’s /32 to the service IP filter. See Aiven access restrictions. |
| DigitalOcean Managed PostgreSQL | Add MantrixFlow’s IP as a trusted source for the cluster. See DigitalOcean trusted sources. |
| Render Postgres | Use the external connection details and restrict external access to MantrixFlow’s IP. See Render Postgres networking. |
Permissions
Create a dedicated write user instead of using the database owner.Step by step
Create the destination schema and user
Create the schema you will write into (e.g.
analytics) and a dedicated write user using the SQL above.Add MantrixFlow's IP to your firewall
Copy MantrixFlow’s static outbound IP from the connection form and add it as a
/32 rule in your provider’s firewall.Add the destination connection in MantrixFlow
Open Connections → + New Connection. Set the role to Destination and choose PostgreSQL. Fill in all fields and click Test Connection. Save after the test passes.
Write modes
The current production write mode in the MantrixFlow UI is Upsert. Append and Replace are visible in the UI but marked Soon.| Mode | Status | Behavior |
|---|---|---|
Upsert | Available | Inserts new rows and updates existing rows matched by primary key |
Append | Coming soon | Insert only — no deduplication |
Replace | Coming soon | Drops and recreates the destination table on each run |
Destination schema management
By default MantrixFlow creates the destination table automatically based on the source schema or transform output. If you prefer to manage the schema yourself:- Create the table in the destination database before the first run.
- Ensure all column names and compatible types match the pipeline output.
- Use cross-type widening if you want broader destination types (e.g.
TEXTinstead ofVARCHAR).
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| Connection timeout | Destination firewall blocking MantrixFlow | Add MantrixFlow’s /32 to the allowlist |
| Permission denied at run time | Write user missing schema or table privileges | Run GRANT USAGE and GRANT INSERT, UPDATE |
| Duplicate rows on re-run | Write mode is append on a table with a unique key | Switch to upsert |
| Type mismatch error | Source type incompatible with destination column | Check data type compatibility |
| TLS error | Provider requires stricter SSL | Set SSL mode to require or verify-full |