A warm standby server (see the section called “Warm Standby Servers for High Availability” in the chapter called “Backup and Restore” in the Advanced Server Documentation) can be kept current by reading a stream of write-ahead log (WAL) records. If the main server fails, the warm standby contains almost all of the data of the main server, and can be quickly made the new master database server. This is asynchronous and can only be done for the entire database server.