Easy running totals with windowing functions in PostgreSQL | Hacker News Reader