a8d7d6175a
This should make PostgreSQL behave more like MySQL and resolve the problem when events were appearing in different order.