Skip to content

Commit

Permalink
Update 001-cdc/001---cdc.md
Browse files Browse the repository at this point in the history
Co-authored-by: Mostafa Moradian <[email protected]>
Signed-off-by: Shahryar Soltanpour <[email protected]>
  • Loading branch information
sh-soltanpour and mostafa authored Dec 28, 2023
1 parent 72403ad commit 8575ae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 001-cdc/001---cdc.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ For the subscriber/consumer part, we can try using the [Confluent PostgreSQL sin


### Approach 3: Implement our publisher and subscriber in Go, using the PostgreSQL's logical replication
In this approach, we will implement something similar to Debezium server/engine, but using Golang libraries such as [wal2json](https://github.com/eulerto/wal2json) and [wal-g](https://github.com/wal-g/wal-g).
In this approach, we will implement something similar to Debezium server/engine, but using tools and libraries such as [wal2json](https://github.com/eulerto/wal2json) and [wal-g](https://github.com/wal-g/wal-g).
The steps in this approach would be:
1. Using Wal-g, we create a base backup of the source database and restore it to the target database. From this point, the target database must be in read-only mode for users other than our plugin user.
2. Using wal2json, we create a stream of transactions from the source database from the point that the base backup was created.
Expand Down

0 comments on commit 8575ae8

Please sign in to comment.