Distinct on: a confusing, unique and useful feature in Postgres | Hacker News