Custom Aggregates in PostgreSQL

Redirecting to original post on Hashrocket blog...