HA-awareness functions

ha_attach()
Associate a recovery function with a connection to make it HA-aware.
ha_detach()
Remove a previously specified association between a recovery function and a connection. This makes the connection no longer HA-aware.
ha_connection_ctrl()
Control the operation of a HA-aware connection.