Docs
Sign in

Change Data Capture

Change Data Capture (CDC) streams every row-level change from a database into your project as it happens. Instead of copying a table on a schedule, you keep a running record of each insert, update and delete.

Screenshot to add: The Change Data Capture page with the pipeline diagram and the CDC Sources list.

The page subtitle reads "Debezium → Redpanda → Landing zone (Iceberg)". The sidebar calls this page CDC.

How it works

At the top of the page a small diagram shows the path every change takes:

StageRole
Source DB (PostgreSQL)Your database, where changes are made
DebeziumA connector that reads the database's change log
RedpandaHolds each change as a message on a topic
Landing zone (Iceberg tables)The project's tables, where changes are written

The page has two tabs: CDC Sources (the main view) and Topics. Without an open project it shows "No project selected — choose one from the sidebar".

CDC Sources tab

Each CDC source is one connector watching one database. The tab shows a count such as 2 source(s) and a New CDC source button. With none yet it says "No CDC sources yet".

ColumnWhat it shows
NameThe source name. Click it to open the source detail page. A green dot means it is wired: events are being written to the landing zone. A red line under the name is the latest error
StateStreaming, Snapshotting, Starting, Paused, Failed, or the raw status if none of these fit
TablesHow many tables the source captures
EventsHow many change events have been processed
Last eventHow long ago the last change arrived
ActionsPause or Resume, Re-snapshot, Delete

Create a CDC source

New CDC source opens a four-step wizard.

  1. Step 1: Connection

    Pick PostgreSQL, then enter:

    • Source name, for example orders-cdc. Required.
    • Host, Port, Database, Username and Password. Use an account allowed to read the database's change log (the placeholder suggests replication_user).
    • Schema filter (optional), such as public, demo_ops. Leave it empty to see all schemas. On large databases, add a filter to shorten the table list.

    Click Test / Detect tables. It connects to the database and lists the tables that can be captured, with their primary keys.

  2. Step 2: Capture set

    Tick the tables to capture. A line at the bottom counts them, for example 3 of 12 table(s) selected.

    • Each table shows its primary key, or an amber no PK; keyless badge when it has none.
    • Over 10 tables, a Filter tables… box appears. Over 30, the wizard suggests narrowing with a schema filter in Step 1.
    • Each selected table has a snapshot mode:
    Snapshot modeMeaning
    initialCopy the rows already in the table, then stream new changes. This is the default
    schema_onlyCapture the table's structure and stream only new changes
    neverDo not copy existing rows or structure; stream only new changes

    You must select at least one table: "Select at least one table to capture".

  3. Step 3: Mapping

    For each captured table, set:

    • Target table, the landing zone table that receives the changes. It defaults to the source table name with dots replaced by underscores, so public.orders becomes public_orders.
    • Key columns, a comma-separated list such as id.

    The Write mode is Change-log (v1). An Upsert (v2) option is shown but turned off ("Upsert sink not yet available — change-log append is the only supported write mode").

  4. Step 4: Review & create

    Check the summary: source name, connection, the Debezium connector to be deployed, the number of Redpanda topics, the landing tables and the snapshot modes. Leave Start streaming immediately ticked to begin capturing straight away, then click Create CDC Source.

    On success a message confirms the connector was deployed, and the new source is highlighted in the list.

Use Back and Next to move between steps. Validation messages appear above the buttons, such as "Source name is required".

Pause, resume, re-snapshot and delete

  • Pause stops capturing without removing anything. Resume starts again where it left off.
  • Re-snapshot copies the tables' current rows again.
  • Delete asks you to confirm. It removes the Debezium connector and stops capturing changes. Tables already written to the landing zone are not deleted.

Source detail

Click a source name to open its page, with a Back to CDC Sources link. The header shows the source name, state badges, the number of tables, the total rows written, when it last ran, the connector name and the replication slot. If replication is unhealthy, an Unhealthy badge appears with the reasons. The same Pause/Resume, Re-snapshot and Delete controls are at the top right.

The page has four parts:

SectionWhat it shows
Captured tablesOne row per table: source table, landing table, topic, rows written, lag, last event and status
Live eventsClick to open a live view of the last 50 events, refreshed every 5 seconds. Each shows the operation (Create, Snapshot, Update or Delete), key, time, topic and values
Zone-2 current-state viewA ready-made SQL recipe, described below
State historyA timeline of the source's state changes

Reading changes as current rows

Landing zone tables from CDC are append-only change logs: every change adds a row, so a record that was updated three times appears four times. The detail page shows a query you can run in Explore that keeps only the latest row for each key and drops deleted records. It uses these columns that CDC adds to every row:

ColumnMeaning
_opThe operation. d marks a delete
_source_lsnThe position of the change in the database's log
_event_tsWhen the change happened

Topics tab

Shows the technical side of the pipeline, for troubleshooting:

  • Debezium Connectors, the connectors for your project.
  • Kafka Topics, with a Filter topics… box and a Prefix filter. Only topics belonging to your project are listed. With none it says "No topics found in Kafka."