High-availability replication manager for PostgreSQL