pg_receivewal helps you never lose a PostgreSQL transaction - Cybertec