Add debezium-cdc module: Debezium 3.7.1 CDC from Postgres 18 to Kafka, Connect vs embedded engine vs outbox
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b5uEyg58znuchZ8C8i
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
e2c42dc268
commit
95e75d0101
@@ -0,0 +1,30 @@
|
||||
-- Two tables: a plain business table, and an outbox table used in the last section.
|
||||
CREATE TABLE orders (
|
||||
id bigint PRIMARY KEY,
|
||||
customer text NOT NULL,
|
||||
status text NOT NULL,
|
||||
amount_cents integer NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE outbox (
|
||||
id uuid PRIMARY KEY,
|
||||
aggregatetype text NOT NULL,
|
||||
aggregateid text NOT NULL,
|
||||
type text NOT NULL,
|
||||
payload jsonb NOT NULL
|
||||
);
|
||||
|
||||
-- Seed rows that exist BEFORE any connector starts, so the initial snapshot has something to read.
|
||||
INSERT INTO orders VALUES (1, 'asha', 'NEW', 1500), (2, 'ravi', 'NEW', 2500);
|
||||
|
||||
-- A table nobody captures. Writing to it still produces WAL, which matters in the "slot retains WAL" section.
|
||||
CREATE TABLE noise (
|
||||
id bigserial PRIMARY KEY,
|
||||
payload text NOT NULL
|
||||
);
|
||||
|
||||
-- Written by the connector's heartbeat.action.query so a quiet slot can still move forward (section on WAL retention).
|
||||
CREATE TABLE heartbeat (
|
||||
id integer PRIMARY KEY,
|
||||
ts timestamptz
|
||||
);
|
||||
Reference in New Issue
Block a user