I am using Debezium Postgres connector to capture changes in postgres tables.
The documentation for this connector https://debezium.io/documentation/reference/connectors/