/postgres-replication-example

example of postgres physical replication via log/WAL shipping

Primary LanguageShell

Demo

Demonstrates spinning up a master (nuc) and standby (cloud) server, then inserting a bunch of rows to see replication happen on standby

  1. docker-compose up -d nuc
  2. wait for it to be up
  3. docker-compose exec nuc nuc/prep-standby.sh
  4. docker-compose up -d cloud
  5. wait for it to be up
  6. docker-compose exec nuc /nuc/seed.sh