Implementing State Machines in PostgreSQL (2017) | Hacker News Reader