Files
spring-messaging-demo/debezium-cdc/output/01-logical-replication.txt
T

70 lines
1.7 KiB
Plaintext

### Server settings that make CDC possible
postgres
-----------------------------------------------------------------
PostgreSQL 18.7 (Debian 18.7-1.pgdg12+5) on x86_64-pc-linux-gnu
(1 row)
wal_level
-----------
logical
(1 row)
max_replication_slots
-----------------------
4
(1 row)
max_wal_senders
-----------------
4
(1 row)
### Before any connector: no slots, no publications
slots
-------
0
(1 row)
publications
--------------
0
(1 row)
### What logical decoding produces, read with the built-in test_decoding plugin on a throwaway slot
data
----------------------------------------------------------------------
BEGIN 770
table public.noise: INSERT: id[bigint]:1 payload[text]:'hello'
COMMIT 770
BEGIN 771
table public.noise: UPDATE: id[bigint]:1 payload[text]:'hello again'
COMMIT 771
BEGIN 772
table public.noise: DELETE: id[bigint]:1
COMMIT 772
(9 rows)
### Register the Debezium connector (Kafka Connect, pgoutput) and wait for it
register 201
connector: RUNNING ['RUNNING']
### What the connector created inside Postgres
slot_name | plugin | slot_type | active
----------------+----------+-----------+--------
connect_orders | pgoutput | logical | t
(1 row)
pubname | puballtables | pubinsert | pubupdate | pubdelete | pubtruncate
--------------------+--------------+-----------+-----------+-----------+-------------
connect_orders_pub | f | t | t | t | t
(1 row)
pubname | schemaname | tablename
--------------------+------------+-----------
connect_orders_pub | public | orders
(1 row)