PostgreSQL
CDC source setup for PostgreSQL
Prerequisites
-- Verify WAL level is set to logical
SHOW wal_level; -- Must be 'logical'ALTER SYSTEM SET wal_level = logical;
-- Restart PostgreSQL for the change to take effect-- Grant replication privilege
ALTER ROLE sling_user REPLICATION;
-- Grant read access to source tables
GRANT SELECT ON ALL TABLES IN SCHEMA public TO sling_user;Quick Start
Examples
Large Tables with Custom Chunk Size
Time-Bounded Snapshots for Very Large Tables
High-Throughput Workloads
Soft Deletes
Mixed Streams with Per-Stream Overrides
Replay / Backfill from a Point in Time
Replay Formats
Replication Slots and Publications
slot_level: shared (default)
slot_level: shared (default)slot_level: stream
slot_level: streamWAL Retention
Troubleshooting
"wal_level must be 'logical'"
"current user does not have REPLICATION privilege"
"could not open replication connection"
"could not set REPLICA IDENTITY FULL"
"replication slot is already active"
Initial snapshot keeps restarting
Large WAL lag warning
Last updated
Was this helpful?