High Availability and Failover in PostgreSQL

Replication gives you standby copies of your database. High availability is what turns those standbys into a system that survives the primary failing without a human scrambling at 3am.