Postgresql has two ways of replication
- Physical replication
- Logical replication
with physical replication everything is send over and the servers must have the same major release. Which makes upgrading a bit cumbersome.
With logical replication, Postgresql servers can be different versions, which makes the process of upgrading much easier.
I am leaning more towards using logical replication. I want to use Postgresql in high availability. Does logical replication support hot standby?