Debezium Postgres CDC connector setup

domain: debezium.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Configure the PostgreSQL server: set wal_level = logical in postgresql.conf and grant the connector user REPLICATION privilege and SELECT on the tables to capture.
  2. Create a replication slot on Postgres using the pgoutput plugin (built-in since Postgres 10) or the decoderbufs plugin if preferred.
  3. POST the connector configuration to the Kafka Connect REST API with connector.class set to io.debezium.connector.postgresql.PostgresConnector and required fields: database.hostname, database.port, database.user, database.password, database.dbname, database.server.name, and plugin.name.
  4. Verify the connector status reaches RUNNING and the initial snapshot completes by monitoring the connector's status topic and Kafka topic creation for each captured table.
  5. Monitor the replication slot lag using SELECT * FROM pg_replication_slots to ensure the connector is consuming changes and the slot is not growing unbounded.

Known gotchas

Related routes

Configure a Debezium MySQL connector with binlog-based CDC
debezium.io · 6 steps · unrated
Configure a Debezium MySQL connector with binlog-based CDC and proper server-id and binlog settings
debezium.io · 5 steps · unrated
Configure a Debezium PostgreSQL connector using pgoutput logical decoding
debezium.io · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans