we need PostgreSQL 9.1 specifically, for the smarter group by