Generic Queue and Replication for PostgreSQL