PostgreSQL
Relay WAL events from your Postgres server to a Batch collection
Postgres Setup
Your postgres server must be started with the option wal_level=logical
and have at least one available replication slot for plumber to read from
Ensure postgres is started with the correct Write Ahead Log level, and has at least 1 replication slot
Create a publication
A publication is required for postgres to know which changes to ship to a replication slot. See postgres documentation for options: https://www.postgresql.org/docs/current/sql-createpublication.html
You may name the publication anything you wish. In this example, we'll use batchsh_plumber.
Create a replication slot
For this example, we'll name ours plumber_slot
.
The most important thing to note here is that pgoutput
is the output plugin.
Relay events to your batch collection
Relay via plumber docker container
Relay via plumber binary
View events in your Batch collection
Change events should start appearing in your batch collection within seconds of them being made in your postgresql database.
Last updated