/

Data Integration

Postgres to Redshift: The Complete Replication Guide

Intergalactic Data Labs

—

—

13 min read

Table of contents

Summarize

If your application runs on Postgres and your analysts query Redshift, this guide covers every path between the two and what decides between them. Postgres reaches Redshift four ways in November 2026. AWS zero-ETL copies it inside AWS, DMS replicates through a CSV stage, and a hand-built export lands files for COPY. Between them sits a tool such as Filament, Fivetran, Airbyte, or Estuary that loads Parquet through S3.

Path

Carries deletes

Staging

Pricing unit

AWS zero-ETL

Yes, logical replication

None you see

Redshift compute, per GB for self-managed sources

Replication tool

Yes with change data capture

S3 bucket, yours or the vendor’s

Rows, credits, GB, or nothing

AWS DMS

Yes with a primary key

CSV in a DMS bucket

Instance or DCU hours

Manual S3 and COPY

No

Your S3 bucket

Your time

What decides a Postgres to Redshift replication?

Six facts decide this route, and load speed is deliberately not among them, because no public benchmark has run a Redshift sink and nobody gets a throughput claim without one.

  • Change capture. A slot carries inserts, updates, and deletes, while a query on updated_at cannot, so “Use CDC when deletes or source transaction order must propagate” (replication modes).

  • Where Postgres runs. Zero-ETL for Aurora and RDS needs the source “in the same Region as the target” (AWS). Self-managed Postgres gets a metered path instead.

  • Who holds the staging bucket. COPY loads “from multiple compressed data files” in S3 (COPY best practices), so every file-based tool needs a bucket, yours or theirs.

  • Type fidelity. Redshift caps VARCHAR at 65,535 bytes and lacks arrays, BYTEA, JSON, UUID, and range types (unsupported types). The mapping decides what survives.

  • Duplicate handling. Redshift says primary key constraints “are informational only” (defining constraints), so the tool must stop a replay from doubling rows.

  • What you pay by. Active rows, credits, gigabytes, DCU hours, or nothing beyond the Redshift bill, and the unit shapes the cost curve more than the rate.

Every tool that moves Postgres into Redshift

Sixteen tools run this route, and all but the AWS-native three load Redshift through files in S3. Every cell below comes from the vendor’s own documentation, pricing page, or LICENSE file, read on November 23, 2026.

Tool

Postgres capture

Redshift load

Staging bucket

Pricing unit

License

Filament

pgoutput slot, incremental, or full

Parquet manifests and COPY

Yours

None

Apache 2.0

Zero-ETL, Aurora and RDS

Logical replication, managed

Managed

None

Redshift compute

Service

Glue zero-ETL, self-managed

DMS source endpoint

Managed

None

Per GB of change data

Service

AWS DMS

test_decoding or pglogical

CSV and COPY

DMS creates one

Instance or DCU hours

Service

Fivetran

pgoutput or Query-Based

Staged COPY

Fivetran’s, in your Region

Monthly active rows

Proprietary

Airbyte

pgoutput or xmin

S3 staging and COPY

Yours

Credits, 4 per GB

ELv2

Estuary Flow

Logical replication

Files in S3

Yours

Per GB plus per connector

BSL 1.1

Hevo

Logical replication

Staged COPY

Hevo’s

Events

Proprietary

Stitch

wal2json plugin

Not documented

Not documented

Rows per month

Proprietary

dlt

pgoutput via pg_replication

Parquet in S3 and COPY

Yours

None, dltHub paid

Apache 2.0

Sling

WAL, paid plans only

Parquet in S3 and COPY

Yours

Flat monthly

GPLv3

ingestr

Snapshot then log stream

Redshift destination

Not documented

None

FSL 1.1

Debezium

pgoutput or decoderbufs

Kafka Connect sink from Confluent

Kafka topics

Sink subscription

Apache 2.0

Striim

wal2json

S3 staging

Yours

Events, contact sales

Proprietary

Qlik Replicate

test_decoding

S3 and copy

Yours

Not published

Proprietary

Meltano

tap-postgres, wal2json

boto3 copy

Yours

None

ELv2 tap, Apache 2.0 target

The AWS-native paths are the easiest to start and the narrowest. Zero-ETL for RDS for PostgreSQL went GA in July 2025 with no extra Redshift fee (pricing), but its destination is read-only and a DDL change “can trigger a table resynchronization” (RDS zero-ETL). Self-managed Postgres joined through Glue in November 2025, billed per gigabyte of change data (DMS pricing).

Classic DMS stages CSV and warns of duplicates after a resumed task (DMS Redshift target). The managed services trade the bucket for a bill. Fivetran tracks deletes only when replica identity is FULL or INDEX (Fivetran docs). Airbyte rounds numerics past nine decimal places (Airbyte docs). Estuary caps a document at 4 MB under a BSL license (Estuary docs), and Stitch needs wal2json installed first (Stitch docs).

The tools you run yourself cost nothing to license and everything to operate. dlt copies Parquet from your bucket with delete-insert and scd2 merges (dlt docs), Sling gates change capture behind a paid plan (Sling docs), and Debezium has no Redshift sink of its own (Debezium JDBC sink). PeerDB has no Redshift destination at all (README), and federated query reads RDS tables in place without copying (federated query).

What Filament brings to a Redshift load

Filament meets the capture, staging, duplicate, and pricing criteria outright, and its Redshift sink is still flagged preview. The connector catalog carries that flag on the sink and not on the Postgres source, and defines it as a connector that has “not been confirmed stable across their supported objects and environments” (connector catalog). The sink page sums up the load path. “Batches are encoded as Parquet, staged in a user-provided S3 bucket, and loaded with Redshift COPY manifests” (Redshift sink).

Capture belongs to the Postgres source. It streams pgoutput over a slot it manages and creates that slot “with an exported snapshot”, so the baseline and the change stream share one consistent point (Postgres source). Large tables split into as many as 64 parallel ranges, and bounded runs replay to the current WAL position and return, so a cron schedule gives periodic catch-up.

Duplicates are handled on the sink. Redshift keys are informational, so “Filament uses the key fields itself when applying upserts, deletes, and CDC merges” and commits each load in one transaction (Redshift sink). A ledger named _filament_load_batches refuses to apply a batch twice, uploads are verified with CRC32C, and loaded row counts are compared with the batch. Tables use DISTSTYLE AUTO and SORTKEY AUTO, and schema changes are add-only.

The limits sit on the same page. The connector authenticates with a username and password only, needs a bucket in the Redshift Region, and needs two AWS identities with separate grants. Strings and arrays land as VARCHAR(MAX), and a decimal wider than precision 38 falls back to text. Filament is pre-1.0 and its APIs may change (introduction).

Disclosure, this site belongs to Galaxy, the company behind Filament.

Running Postgres to Redshift on Filament, step by step

Four pieces of setup and three commands move a billing database, and every step below is checkable. The example replicates invoices and payments from a Postgres database named ledger into a Redshift schema named billing with merge writes. Change data capture needs a deployment backed by the Postgres datastore, because the local CLI context rejects replication streams (troubleshooting).

Prepare Postgres

Set wal_level, create a replication role, and publish the two tables. On RDS or Aurora, set rds.logical_replication in the parameter group instead (DMS source notes). No superuser is needed (Postgres to Snowflake how-to).

ALTER SYSTEM SET wal_level = logical;
-- restart Postgres, then
CREATE ROLE filament WITH LOGIN REPLICATION PASSWORD 'change-me';
GRANT USAGE ON SCHEMA public TO filament;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO filament;
CREATE PUBLICATION filament FOR TABLE public.invoices, public.payments;
ALTER TABLE public.invoices REPLICA IDENTITY FULL

ALTER SYSTEM SET wal_level = logical;
-- restart Postgres, then
CREATE ROLE filament WITH LOGIN REPLICATION PASSWORD 'change-me';
GRANT USAGE ON SCHEMA public TO filament;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO filament;
CREATE PUBLICATION filament FOR TABLE public.invoices, public.payments;
ALTER TABLE public.invoices REPLICA IDENTITY FULL

ALTER SYSTEM SET wal_level = logical;
-- restart Postgres, then
CREATE ROLE filament WITH LOGIN REPLICATION PASSWORD 'change-me';
GRANT USAGE ON SCHEMA public TO filament;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO filament;
CREATE PUBLICATION filament FOR TABLE public.invoices, public.payments;
ALTER TABLE public.invoices REPLICA IDENTITY FULL

The last line matters for tables with large text or JSON columns, because an update that leaves a TOAST column unchanged arrives without its old value and fails the run otherwise (Postgres source). PostgreSQL 19 can decode with wal_level at replica once a slot exists (release notes), but every tool still documents logical.

Prepare Redshift and the staging bucket

Create a private bucket in the same Region as the cluster or workgroup, then give the Filament user a schema it owns, which the docs call “the simplest setup” (Redshift sink). One way to grant it follows.

CREATE USER filament PASSWORD 'Change-me-1';
CREATE SCHEMA billing AUTHORIZATION filament;
GRANT TEMP ON DATABASE dev TO

CREATE USER filament PASSWORD 'Change-me-1';
CREATE SCHEMA billing AUTHORIZATION filament;
GRANT TEMP ON DATABASE dev TO

CREATE USER filament PASSWORD 'Change-me-1';
CREATE SCHEMA billing AUTHORIZATION filament;
GRANT TEMP ON DATABASE dev TO

Two AWS identities then need S3 access, since “Granting S3 access to only one identity is not sufficient”.

Identity

Needs

Scope

Filament worker, from the SDK credential chain

ListBucket, PutObject, DeleteObject

Bucket and the staging prefix

IAM role associated with the cluster or namespace

ListBucket, GetObject

Same bucket and prefix

Associate the role with the cluster or namespace before the first run (authorizing Redshift).

Create the source and the sink

The source command is the documented form with the connection renamed, run after filament context use points the CLI at your deployment.

filament source create billing-pg \
  --source-connector postgres \
  --source-connection-method url \
  --source-dsn "postgres://filament:change-me@pg.internal:5432/ledger?sslmode=require" \
  --source-replication cdc \
  --source-manage-publication=false
filament source create billing-pg \
  --source-connector postgres \
  --source-connection-method url \
  --source-dsn "postgres://filament:change-me@pg.internal:5432/ledger?sslmode=require" \
  --source-replication cdc \
  --source-manage-publication=false
filament source create billing-pg \
  --source-connector postgres \
  --source-connection-method url \
  --source-dsn "postgres://filament:change-me@pg.internal:5432/ledger?sslmode=require" \
  --source-replication cdc \
  --source-manage-publication=false

No published example shows the Redshift sink on the CLI yet, so the command below applies the documented rule that connector fields become sink- flags with hyphens for underscores (CLI guide). Confirm the names with filament sink create --sink-connector redshift --help first.

filament sink create billing-redshift \
  --sink-connector redshift \
  --sink-host my-workgroup.123456789012.us-east-1.redshift-serverless.amazonaws.com \
  --sink-port 5439 \
  --sink-username filament \
  --sink-password-env REDSHIFT_PASSWORD \
  --sink-database-name dev \
  --sink-schema-name billing \
  --sink-staging-bucket ledger-staging-bucket \
  --sink-staging-bucket-region us-east-1 \
  --sink-associated-iam-role

filament sink create billing-redshift \
  --sink-connector redshift \
  --sink-host my-workgroup.123456789012.us-east-1.redshift-serverless.amazonaws.com \
  --sink-port 5439 \
  --sink-username filament \
  --sink-password-env REDSHIFT_PASSWORD \
  --sink-database-name dev \
  --sink-schema-name billing \
  --sink-staging-bucket ledger-staging-bucket \
  --sink-staging-bucket-region us-east-1 \
  --sink-associated-iam-role

filament sink create billing-redshift \
  --sink-connector redshift \
  --sink-host my-workgroup.123456789012.us-east-1.redshift-serverless.amazonaws.com \
  --sink-port 5439 \
  --sink-username filament \
  --sink-password-env REDSHIFT_PASSWORD \
  --sink-database-name dev \
  --sink-schema-name billing \
  --sink-staging-bucket ledger-staging-bucket \
  --sink-staging-bucket-region us-east-1 \
  --sink-associated-iam-role

Create the pipeline and run it

The pipeline must name --sync-mode cdc, because a change data capture source rejects the default read mode (troubleshooting).

filament source discover billing-pg

filament pipeline create billing-to-redshift \
  --source billing-pg \
  --sink billing-redshift \
  --resources invoices,payments \
  --sync-mode cdc \
  --write-mode merge \
  --sink-schema

filament source discover billing-pg

filament pipeline create billing-to-redshift \
  --source billing-pg \
  --sink billing-redshift \
  --resources invoices,payments \
  --sync-mode cdc \
  --write-mode merge \
  --sink-schema

filament source discover billing-pg

filament pipeline create billing-to-redshift \
  --source billing-pg \
  --sink billing-redshift \
  --resources invoices,payments \
  --sync-mode cdc \
  --write-mode merge \
  --sink-schema

The first run creates the slot with an exported snapshot and reads both tables through it, and each later run replays to the current WAL position and exits.

Verify the load

Check the slot on Postgres and the rows on Redshift, since a growing lag means the schedule has stalled.

SELECT slot_name, active,
       pg_size_pretty(pg_wal_lsn_diff(pg_current_wal_lsn(), confirmed_flush_lsn)) AS lag
FROM

SELECT slot_name, active,
       pg_size_pretty(pg_wal_lsn_diff(pg_current_wal_lsn(), confirmed_flush_lsn)) AS lag
FROM

SELECT slot_name, active,
       pg_size_pretty(pg_wal_lsn_diff(pg_current_wal_lsn(), confirmed_flush_lsn)) AS lag
FROM

SELECT count(*) FROM billing.invoices;
SELECT table_schema, table_name FROM information_schema.tables
WHERE table_name = '_filament_load_batches'

SELECT count(*) FROM billing.invoices;
SELECT table_schema, table_name FROM information_schema.tables
WHERE table_name = '_filament_load_batches'

SELECT count(*) FROM billing.invoices;
SELECT table_schema, table_name FROM information_schema.tables
WHERE table_name = '_filament_load_batches'

Types land as the sink maps them.

Filament logical type

Redshift type

int16, int32, int64

SMALLINT, INTEGER, BIGINT

decimal up to precision 38

DECIMAL(p,s)

string, array, unknown

VARCHAR(MAX)

json

SUPER

uuid

VARCHAR(36)

bytes

VARBYTE(16777216)

Schedule it, or skip the slot

Add a cron schedule in the web app or with the Pipelines API, where every 5 to 15 minutes is common (Postgres to Snowflake how-to). A table with a NOT NULL timestamp cursor and no delete requirement can skip the slot with a second source created without --source-replication cdc.

filament pipeline create payments-to-redshift \
  --source billing-pg-standard \
  --sink billing-redshift \
  --resources payments \
  --sync-mode incremental \
  --write-mode upsert \
  --sink-schema

filament pipeline create payments-to-redshift \
  --source billing-pg-standard \
  --sink billing-redshift \
  --resources payments \
  --sync-mode incremental \
  --write-mode upsert \
  --sink-schema

filament pipeline create payments-to-redshift \
  --source billing-pg-standard \
  --sink billing-redshift \
  --resources payments \
  --sync-mode incremental \
  --write-mode upsert \
  --sink-schema

Incremental reads rewind 300 seconds to absorb late commits and leave the duplicates to upsert, and they cannot see a hard delete (Postgres source).

Where Postgres to Redshift pipelines break

The failures cluster on the slot, the bucket, and the type system, whichever tool you run.

Pitfall

Symptom

Fix

Slot keeps WAL

Source disk fills while a pipeline is paused

Keep the schedule running and drop slots for deleted pipelines

TOAST column update

Run fails on an unchanged large column

Set REPLICA IDENTITY FULL on that table

One identity granted

COPY manifest or access bucket error

Grant both the worker and the Redshift role

Text over 64 KB

Truncated or rejected rows

Shorten, split, or move the column to SUPER

Appended duplicates

Row counts drift upward

Use merge writes and a replay ledger

Enhanced VPC routing

COPY cannot reach S3

Add an S3 gateway endpoint to the VPC

Postgres keeps WAL for an unread slot without limit by default, because max_slot_wal_keep_size ships unlimited (runtime config). The 64 KB ceiling bites every tool, and DMS states that Redshift “does not support VARCHARs larger than 64 KB” (DMS Redshift target).

Which Postgres to Redshift path fits your setup?

Where Postgres runs settles most of this decision before any tool is evaluated.

Where Postgres runs

Deletes needed

Pick

Deciding fact

Aurora or RDS, same Region

Yes

AWS zero-ETL

No extra Redshift fee, managed slot

Aurora or RDS, writable warehouse schema

Yes

Filament, Fivetran, or Estuary

Zero-ETL target is read-only

EC2, on-premises, or another cloud

Yes

Filament, dlt, or Glue zero-ETL

Glue bills change data per GB

Any, with many SaaS sources too

Either

Fivetran or Airbyte

One catalog, one bill

Any, Kafka already running

Yes

Debezium plus a sink

Capture is solved, the sink is not

Any, one-off migration

No

DMS or S3 and COPY

No slot to babysit afterwards

Zero-ETL is the right default for an RDS or Aurora mirror, and its read-only destination and resync on DDL are the reasons to look past it. Filament fits the team that owns its AWS account and wants verified, checkpointed loads into either Redshift flavor from a sink that has not yet cleared the catalog flag.

Related guides

The same source lands in Postgres to Snowflake, Postgres to ClickHouse, and Postgres to Apache Iceberg. The logical replication guide covers slots, the change data capture methods comparison weighs pgoutput against triggers, full load vs incremental vs CDC says when a slot is overkill, and the announcement covers deployment and license.

Frequently asked questions

Does Redshift zero-ETL work with self-managed Postgres on EC2 or on-premises?

Yes, since November 25, 2025. AWS Glue zero-ETL for self-managed sources replicates PostgreSQL on EC2 or on-premises into Redshift through an AWS DMS source endpoint. It launched in seven Regions, Redshift is the only allowed target, and ongoing change data is billed per gigabyte, unlike the no-fee Aurora and RDS integrations.

What are the best ETL tools for PostgreSQL to Redshift?

The best ETL tools for PostgreSQL to Redshift depend on where Postgres runs and whether deletes must arrive. Aurora and RDS users get zero-ETL at no extra Redshift fee. Everyone else picks Fivetran, Airbyte, Estuary, Hevo, or Stitch as a managed service, or Filament, dlt, Sling, or Meltano as a tool they run.

Can you load Redshift without an S3 bucket?

Only with zero-ETL, which AWS manages end to end, or with row-by-row inserts that AWS advises against for bulk loads. Every COPY-based tool stages Parquet or CSV files in S3 first, because COPY reads from S3. Some tools bring their own bucket, while Filament, Estuary, and Sling need one in your account.

Which Postgres data types does Redshift not support?

AWS lists arrays, BYTEA, JSON, UUID, enumerated types, range types, and XML as unsupported in Redshift, along with partitioning, indexes, sequences, and triggers. Each tool maps these differently. Common choices are VARCHAR for text and UUID, SUPER for JSON, and VARBYTE for binary data, so read the mapping table before the first load.

Why does Redshift accept duplicate primary keys after replication?

Redshift treats primary key and uniqueness constraints as informational and never enforces them during a load. A tool that replays a batch after a failure, or that appends updates instead of merging them, leaves duplicates behind. Pick one that deletes matching keys before inserting and keeps a ledger of applied batches.

Does PostgreSQL 19 remove the wal_level restart for logical replication?

Partly. PostgreSQL 19, released in November 2026, can decode changes when wal_level is replica and a valid logical slot exists, so a restart is no longer required to enable it. Every replication tool still documents wal_level set to logical, and on older versions that setting plus a restart stays mandatory.

Does Filament support Redshift Serverless?

Yes. The connector has no provisioned or Serverless switch. You supply either the cluster endpoint or the Serverless workgroup endpoint as the host, both on port 5439, and the same Parquet staging and COPY manifest path applies. The Redshift sink still carries the connector catalog’s preview flag, so expect changes before it clears.

What AWS permissions does Filament need to load Redshift?

Two identities. The worker identity, taken from the AWS SDK credential chain, needs ListBucket on the staging bucket and PutObject plus DeleteObject under the staging prefix. The IAM role associated with the Redshift cluster or namespace needs ListBucket and GetObject on the same prefix. Granting only one fails the COPY.

More articles

Stay up to date with what we’re building

Stay up to date with what we’re building

Stay up to date with what we’re building

Questions

Answered

FAQ

What does Galaxy do?

What is Filament?

What is enterprise context management?

What does working with Galaxy look like?

How do you handle security and compliance?

Why does Galaxy build in the open?

Own your knowledge stack

Own your knowledge stack

Copyright © 2026 Galaxy. All rights reserved.