It’s 3am. Your phone rings. PostgreSQL is down, you need to promote a replica to master. Why the h**l isn’t this automatic?
If you thought of this before, you want automatic High Availability (HA). Don’t miss this tutorial! We will enter the world of Modern PostgreSQL HA.
Good news, there are several new, “modern” solutions for PostgreSQL HA. However, there are several solutions and it's not easy to pick one. Most require non-trivial setups, and there are many small caveats about HA like how to provide entry points to the application, HA correctness, HA vs. read scaling, external dependencies, interaction with cloud environments, and so forth.
----------------
This presentation is a 3h tutorial presented at PostgreSQL Conferences like https://postgresconf.org/conferences/2018/program/proposals/tutorial-on-modern-postgresql-high-availability It is accompanied by a set of lab exercises. Code and instructions are available here: https://github.com/ongres/pg_modern_ha_tutorial_exercises