Redshift
Configuration reference for the Redshift destination: connectivity and grants, sink options, distribution/sort-key guidance for merge, and troubleshooting.
Amazon Redshift is a cloud data warehouse optimized for analytical SQL workloads. Nilus writes into Redshift tables for both batch and CDC pipelines using Redshift's PostgreSQL-compatible wire protocol, internally the redshift:// URI is rewritten to postgresql:// before connecting.
Requirements
Connectivity and credentials must both be in place before the pipeline can run.
Connectivity
The Nilus runtime must reach the Redshift cluster endpoint (typically
<cluster>.<random>.<region>.redshift.amazonaws.com) on TCP5439.The Redshift VPC security group must allow inbound traffic from the runtime egress IP range.
For Redshift Serverless, the workgroup endpoint is the
<host>to use; the rest of the URI shape is identical.
Required parameters
host
Yes
-
Redshift cluster or Serverless workgroup endpoint.
port
No
5439
Redshift port.
database
Yes
-
Target database.
username
Yes
-
Redshift user.
password
Yes
-
Password for the Redshift user.
sslmode
No
server default
Optional SSL mode: disable, allow, prefer, require, verify-ca, verify-full.
Permissions
The Redshift user needs:
USAGEon the target schema.CREATEon the target schema if Nilus is expected to auto-create tables.INSERT,UPDATE,DELETE,SELECTon the target tables according to the configuredincremental_strategy.For
merge, define a stable distribution / sort key strategy on the target table so the reconciliation join performs.
URI format
Note Internally Nilus rewrites the scheme to
postgresql://for the actual database connection, while still routing the load through Nilus's Redshift destination adapter. Do not usepostgresql://directly against Redshift, since the Redshift-specific optimizations (sort-key-aware copy, region-aware staging) only kick in when the URI scheme isredshift://.
Sink options
dest_table
Yes
Target table in <schema>.<table> form.
incremental_strategy
Yes
One of replace, append, or merge.
Sample Nilus configs
Each example below is self-contained and uses the current Nilus pipeline shape.
Batch ingestion
CDC ingestion
Behavior and capabilities
Compute model: Nilus connects through Redshift's PostgreSQL-compatible SQL endpoint and submits SQL writes; the cluster's compute nodes execute the load.
Object model: standard Redshift tables addressed as
<schema>.<table>.Supported pipeline types:
batchandcdc.Identifier case: like PostgreSQL, Redshift folds unquoted identifiers to lower-case.
Wire protocol: Redshift speaks PostgreSQL wire protocol but supports a subset of PG features; for example, no
RETURNING *fromINSERT, no full-text search, no per-row triggers. Avoid relying on PG-specific extensions in custom DDL.
Troubleshooting
password authentication failed for user …
Wrong credentials, IAM-managed user expired, or the password rotated upstream.
Re-check credentials. For IAM-managed users, regenerate the temporary password and refresh the Nilus secret.
Connection refused / timeout
VPC security group blocks the runtime egress IP.
Add the runtime egress CIDR to the Redshift security group inbound rules.
dest_table rejected
Table name is missing the schema prefix.
Use the explicit <schema>.<table> form.
Slow merge runs over large tables
Target table lacks an appropriate DISTKEY / SORTKEY for the merge join.
Add a DISTKEY on the merge join column and a SORTKEY on the high-selectivity column; rerun.
Mysterious 255 columns limit error
Redshift hard-caps tables at 1,600 columns and column names at 127 bytes. Wide source schemas can hit the limit.
Project / drop unnecessary columns upstream, or split the dataset across multiple destination tables.
Related docs
AWS Redshift: companion batch source connector.
Optimize sink datasets: guidance on
incremental_strategyand dataset-shape tuning.
Last updated
Was this helpful?