-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
1.9.5.Final
-
False
-
None
-
False
In order to make your issue reports as actionable as possible, please provide the following information, depending on the issue type.
Bug report
For bug reports, provide this information, please:
What Debezium connector do you use and what version?
{ "name": "inventory-connector", "config": { "connector.class": "io.debezium.connector.postgresql.PostgresConnector", "tasks.max": "1", "database.hostname": "postgres", "database.port": "5432", "database.user": "postgres", "database.password": "postgres", "database.dbname" : "postgres", "database.server.name": "dbserver1", "schema.include.list": "inventory" } }
What is the captured database version and mode of depoyment?
AWS Arora version 12.8
What behaviour do you expect?
Ltree column data should also be captured for change events like insert, update and delete.
What behavior do you see?
For Ltree column in the table values are read-only at the time of snapshot i.e. op = 'r'.
{ "schema":{ "type":"struct", "fields":[ { "type":"struct", "fields":[ { "type":"int32", "optional":false, "default":0, "field":"pk" }, { "type":"string", "optional":true, "name":"io.debezium.data.Ltree", "version":1, "field":"lt" } ], "optional":true, "name":"dbserver1.inventory.custom_table.Value", "field":"before" }, { "type":"struct", "fields":[ { "type":"int32", "optional":false, "default":0, "field":"pk" }, { "type":"string", "optional":true, "name":"io.debezium.data.Ltree", "version":1, "field":"lt" } ], "optional":true, "name":"dbserver1.inventory.custom_table.Value", "field":"after" }, { "type":"struct", "fields":[ { "type":"string", "optional":false, "field":"version" }, { "type":"string", "optional":false, "field":"connector" }, { "type":"string", "optional":false, "field":"name" }, { "type":"int64", "optional":false, "field":"ts_ms" }, { "type":"string", "optional":true, "name":"io.debezium.data.Enum", "version":1, "parameters":{ "allowed":"true,last,false,incremental" }, "default":"false", "field":"snapshot" }, { "type":"string", "optional":false, "field":"db" }, { "type":"string", "optional":true, "field":"sequence" }, { "type":"string", "optional":false, "field":"schema" }, { "type":"string", "optional":false, "field":"table" }, { "type":"int64", "optional":true, "field":"txId" }, { "type":"int64", "optional":true, "field":"lsn" }, { "type":"int64", "optional":true, "field":"xmin" } ], "optional":false, "name":"io.debezium.connector.postgresql.Source", "field":"source" }, { "type":"string", "optional":false, "field":"op" }, { "type":"int64", "optional":true, "field":"ts_ms" }, { "type":"struct", "fields":[ { "type":"string", "optional":false, "field":"id" }, { "type":"int64", "optional":false, "field":"total_order" }, { "type":"int64", "optional":false, "field":"data_collection_order" } ], "optional":true, "field":"transaction" } ], "optional":false, "name":"dbserver1.inventory.custom_table.Envelope" }, "payload":{ "before":null, "after":{ "pk":2, "lt":null }, "source":{ "version":"1.9.6.Final", "connector":"postgresql", "name":"dbserver1", "ts_ms":1665748403761, "snapshot":"false", "db":"postgres", "sequence":"[null,\"37762416\"]", "schema":"inventory", "table":"custom_table", "txId":769, "lsn":37762416, "xmin":null }, "op":"c", "ts_ms":1665748404271, "transaction":null } }
Do you see the same behaviour using the latest relesead Debezium version?
(Ideally, also verify with latest Alpha/Beta/CR version)
YES
Do you have the connector logs, ideally from start till finish?
(You might be asked later to provide DEBUG/TRACE level log)
NO
How to reproduce the issue using our tutorial deployment?
1. Run all the steps in the tutorial ``` # Start the topology as defined in https://debezium.io/documentation/reference/stable/tutorial.html export DEBEZIUM_VERSION=1.9 docker-compose -f docker-compose-postgres.yaml up# Start Postgres connector curl -i -X POST -H "Accept:application/json" -H "Content-Type:application/json" http://localhost:8083/connectors/ -d @register-postgres.json# Consume messages from a Debezium topic docker-compose -f docker-compose-postgres.yaml exec kafka /kafka/bin/kafka-console-consumer.sh \ --bootstrap-server kafka:9092 \ --from-beginning \ --property print.key=true \ --topic dbserver1.inventory.customers ``` 2. Creating Ltree extension ``` # Modify records in the database via Postgres client docker-compose -f docker-compose-postgres.yaml exec postgres env PGOPTIONS="--search_path=inventory" bash -c 'psql -U $POSTGRES_USER postgres'postgres=# create extension ltree; CREATE EXTENSION ``` 3. Create a table with Ltree column ``` postgres=# CREATE TABLE roles_path (id SERIAL,path Ltree); CREATE TABLE ``` 4. Run console-consumer on the topic ``` docker-compose -f docker-compose-postgres.yaml exec kafka /kafka/bin/kafka-console-consumer.sh \ --bootstrap-server kafka:9092 \ --from-beginning \ --property print.key=true \ --topic dbserver1.inventory.roles_path ``` 5. Insert and update values in table roles_path ``` postgres=# insert into roles_path (path) values ('sunil'); INSERT 0 1 postgres=# insert into roles_path (path) values ('kumar'); INSERT 0 1 ```6. The record is picked by console-consumer ``` null {"schema":{"type":"struct","fields":[{"type":"struct","fields":[{"type":"int32","optional":false,"default":0,"field":"id"},{"type":"string","optional":true,"name":"io.debezium.data.Ltree","version":1,"field":"path"}],"optional":true,"name":"dbserver1.inventory.roles_path.Value","field":"before"},{"type":"struct","fields":[{"type":"int32","optional":false,"default":0,"field":"id"},{"type":"string","optional":true,"name":"io.debezium.data.Ltree","version":1,"field":"path"}],"optional":true,"name":"dbserver1.inventory.roles_path.Value","field":"after"},{"type":"struct","fields":[{"type":"string","optional":false,"field":"version"},{"type":"string","optional":false,"field":"connector"},{"type":"string","optional":false,"field":"name"},{"type":"int64","optional":false,"field":"ts_ms"},{"type":"string","optional":true,"name":"io.debezium.data.Enum","version":1,"parameters":{"allowed":"true,last,false,incremental"},"default":"false","field":"snapshot"},{"type":"string","optional":false,"field":"db"},{"type":"string","optional":true,"field":"sequence"},{"type":"string","optional":false,"field":"schema"},{"type":"string","optional":false,"field":"table"},{"type":"int64","optional":true,"field":"txId"},{"type":"int64","optional":true,"field":"lsn"},{"type":"int64","optional":true,"field":"xmin"}],"optional":false,"name":"io.debezium.connector.postgresql.Source","field":"source"},{"type":"string","optional":false,"field":"op"},{"type":"int64","optional":true,"field":"ts_ms"},{"type":"struct","fields":[{"type":"string","optional":false,"field":"id"},{"type":"int64","optional":false,"field":"total_order"},{"type":"int64","optional":false,"field":"data_collection_order"}],"optional":true,"field":"transaction"}],"optional":false,"name":"dbserver1.inventory.roles_path.Envelope"},"payload":{"before":null,"after":{"id":2,"path":null},"source":{"version":"1.9.6.Final","connector":"postgresql","name":"dbserver1","ts_ms":1665486908936,"snapshot":"false","db":"postgres","sequence":"[\"37905720\",\"37905776\"]","schema":"inventory","table":"roles_path","txId":769,"lsn":37905776,"xmin":null},"op":"c","ts_ms":1665486909072,"transaction":null}} ``
Please checkout this zulip thread for more info.
Feature request or enhancement
For feature requests or enhancements, provide this information, please:
Which use case/requirement will be addressed by the proposed feature?
NO
Implementation ideas (optional)
NO
- is duplicated by
-
DBZ-6524 [PostgreSQL] LTree data is not being captured by streaming
- Closed