Speeding up GROUP BY in PostgreSQL – Cybertec