Tips n’ tricks – rank on changes (postgresql - window functions) | Hacker News Reader