Adjacency list vs. nested sets: PostgreSQL | Hacker News Reader