/vagrant-postgres-replication

A proof of concept vagrant setup to demonstrate fault-tolerant clustering and logical replication with PostgreSQL 10

Primary LanguageRuby

Fault Tolerant Logical Replication with PostGreSQL and Zookeeper

This is a proof-of-concept. It is designed to go together with my write-up of all that I learned while doing this here: https://eugene.kovalev.systems/blog/postgres10_cluster

Useful

Postgres Query to insert auto-generated, unique data: insert into random_data (timestamp, uuid) values(localtimestamp, CAST(uuid_generate_v4() AS VARCHAR(36))); Get publication information: SELECT * FROM pg_stat_replication; Get subscription information: SELECT * FROM pg_stat_subscription;

References

PostgreSQL

My Question on DBA Stack Exchange: https://dba.stackexchange.com/questions/199316/postgres-10-logical-replication-without-truncating-existing-table

Tooz

Zookeeper