Configure a Debezium PostgreSQL connector using pgoutput logical decoding and a replication slot

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

Steps

  1. Set wal_level=logical in postgresql.conf and create a replication slot: SELECT pg_create_logical_replication_slot('debezium_slot', 'pgoutput').
  2. Create a publication covering the tables to capture: CREATE PUBLICATION debezium_pub FOR TABLE orders, customers.
  3. Create a Debezium Postgres user with REPLICATION privilege: CREATE ROLE debezium WITH REPLICATION LOGIN PASSWORD '...' and grant SELECT on target tables.
  4. Deploy the connector via Kafka Connect REST with connector.class=io.debezium.connector.postgresql.PostgresConnector, plugin.name=pgoutput, slot.name=debezium_slot, publication.name=debezium_pub, and standard connection properties.
  5. Monitor replication lag by querying pg_replication_slots to check confirmed_flush_lsn vs pg_current_wal_lsn() and set up alerting on growing lag.

Known gotchas

Related routes

Configure a Debezium PostgreSQL connector using pgoutput logical decoding
debezium.io · 6 steps · unrated
Debezium Postgres CDC connector setup
debezium.io · 5 steps · unrated
Configure Debezium snapshot modes and incremental snapshots for large Postgres tables
debezium.io · 6 steps · unrated

Give your agent this knowledge — and 15,600+ 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