How to create a hot standby with PostgreSQL - LinuxConfig.org

Our objective is to create a copy of a PostgreSQL database that is constantly synchronizing with the original one and accepts read-only queries.
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-create-a-hot-standby-with-postgresql