Queues in database are rarely used, because thus far is has been impossible to implement both robust and high-performance queue in general-purpose RDBMS. In PgQ we managed to solve this by generalizing snapshot-based event tracking first introduced with rserv, now used in Slony-I. This presentation will describe the implementation and also real-life use cases. how to implement queue with generic S